Class RabbitListenerEndpointRegistry
public class RabbitListenerEndpointRegistry : IRabbitListenerEndpointRegistry, ISmartLifecycle, ILifecycle, IPhased, IDisposable, IServiceNameAware
- Inheritance
-
RabbitListenerEndpointRegistry
- Implements
- Inherited Members
Constructors
RabbitListenerEndpointRegistry(IApplicationContext, ILogger)
public RabbitListenerEndpointRegistry(IApplicationContext applicationContext, ILogger logger = null)
Parameters
applicationContext
IApplicationContextlogger
ILogger
Fields
DEFAULT_SERVICE_NAME
public const string DEFAULT_SERVICE_NAME = "RabbitListenerEndpointRegistry"
Field Value
Properties
ApplicationContext
public IApplicationContext ApplicationContext { get; set; }
Property Value
IsAutoStartup
Gets a value indicating whether the auto startup is set for this object
public bool IsAutoStartup { get; }
Property Value
IsRunning
Gets a value indicating whether gets a value indicating if its running
public bool IsRunning { get; }
Property Value
Phase
Gets the phase of this object
public int Phase { get; set; }
Property Value
ServiceName
public string ServiceName { get; set; }
Property Value
Methods
CreateListenerContainer(IRabbitListenerEndpoint, IRabbitListenerContainerFactory)
protected IMessageListenerContainer CreateListenerContainer(IRabbitListenerEndpoint endpoint, IRabbitListenerContainerFactory factory)
Parameters
endpoint
IRabbitListenerEndpointfactory
IRabbitListenerContainerFactory
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetListenerContainer(string)
public IMessageListenerContainer GetListenerContainer(string id)
Parameters
id
string
Returns
GetListenerContainerIds()
public ISet<string> GetListenerContainerIds()
Returns
GetListenerContainers()
public ICollection<IMessageListenerContainer> GetListenerContainers()
Returns
RegisterListenerContainer(IRabbitListenerEndpoint, IRabbitListenerContainerFactory)
public void RegisterListenerContainer(IRabbitListenerEndpoint endpoint, IRabbitListenerContainerFactory factory)
Parameters
endpoint
IRabbitListenerEndpointfactory
IRabbitListenerContainerFactory
RegisterListenerContainer(IRabbitListenerEndpoint, IRabbitListenerContainerFactory, bool)
public void RegisterListenerContainer(IRabbitListenerEndpoint endpoint, IRabbitListenerContainerFactory factory, bool startImmediately)
Parameters
endpoint
IRabbitListenerEndpointfactory
IRabbitListenerContainerFactorystartImmediately
bool
Start()
Start this component
public Task Start()
Returns
- Task
a task to signal completion
Stop()
Stop this component
public Task Stop()
Returns
- Task
a task to signal completion
Stop(Action)
Stop the component and issue the callback when complete
public Task Stop(Action callback)
Parameters
callback
Actionthe callback action to invoke when complete
Returns
- Task
a task for completion
UnregisterListenerContainer(string)
public IMessageListenerContainer UnregisterListenerContainer(string id)
Parameters
id
string