Class PluginEventAdapterRegistry
public sealed class PluginEventAdapterRegistry
- Inheritance
-
PluginEventAdapterRegistry
- Inherited Members
Methods
Register<TEvent>(IPluginEventAdapter<TEvent>)
public void Register<TEvent>(IPluginEventAdapter<TEvent> adapter)
Parameters
adapterIPluginEventAdapter<TEvent>
Type Parameters
TEvent
Resolve<TEvent>()
public IPluginEventAdapter<TEvent> Resolve<TEvent>()
Returns
- IPluginEventAdapter<TEvent>
Type Parameters
TEvent
TryResolveErased(string, out IErasedPluginEventAdapter)
Resolves the type-erased, wire-capable adapter for eventName (a manifest event name,
possibly fully qualified) so the host-side router can wire an installed kernel to the right typed
pipeline terminal with no reflection. Shares precedence with TryResolveShape(string, out PluginEventShape), so an
unambiguous resolution picks the same adapter a package was validated against; unlike validation, wiring
rejects an ambiguous collision (returns false) rather than guess which event to wire to.
Public as a composability seam — build custom by-name wiring on top of it when
WireHook(InstalledKernel, WireOptions?)/WireSubscription(InstalledKernel, WireOptions?) don't fit; the adapter must
be registered first (the router does not auto-register by name).
public bool TryResolveErased(string eventName, out IErasedPluginEventAdapter adapter)
Parameters
eventNamestringadapterIErasedPluginEventAdapter