Class SharedVmRegistry
Shared cross-context registry for direct-vm and vm components.
Registered as a singleton in DI — all RouteContexts share the same instance,
enabling cross-context communication without static state.
public class SharedVmRegistry
Inheritance
Methods
GetOrCreateChannel(string, int)
Gets or creates the shared channel for a vm endpoint name.
public Channel<IExchange> GetOrCreateChannel(string name, int boundedSize = 0)
GetProcessor(string)
Gets the processor for a direct-vm endpoint name, or null if none registered.
public IProcessor? GetProcessor(string name)
TryRegisterProcessor(string, IProcessor)
Registers a processor for a direct-vm endpoint name.
public bool TryRegisterProcessor(string name, IProcessor processor)
TryRemoveChannel(string, out Channel<IExchange>?)
Tries to remove a channel (e.g. on last consumer stop). Returns the removed channel if any.
public bool TryRemoveChannel(string name, out Channel<IExchange>? channel)
TryUnregisterProcessor(string, IProcessor)
Unregisters the processor for a direct-vm endpoint name (only if same instance).
public bool TryUnregisterProcessor(string name, IProcessor processor)