Class RabbitListenerEndpointRegistry
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
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
applicationContextIApplicationContextloggerILogger
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
endpointIRabbitListenerEndpointfactoryIRabbitListenerContainerFactory
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
idstring
Returns
GetListenerContainerIds()
public ISet<string> GetListenerContainerIds()
Returns
GetListenerContainers()
public ICollection<IMessageListenerContainer> GetListenerContainers()
Returns
RegisterListenerContainer(IRabbitListenerEndpoint, IRabbitListenerContainerFactory)
public void RegisterListenerContainer(IRabbitListenerEndpoint endpoint, IRabbitListenerContainerFactory factory)
Parameters
endpointIRabbitListenerEndpointfactoryIRabbitListenerContainerFactory
RegisterListenerContainer(IRabbitListenerEndpoint, IRabbitListenerContainerFactory, bool)
public void RegisterListenerContainer(IRabbitListenerEndpoint endpoint, IRabbitListenerContainerFactory factory, bool startImmediately)
Parameters
endpointIRabbitListenerEndpointfactoryIRabbitListenerContainerFactorystartImmediatelybool
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
callbackActionthe callback action to invoke when complete
Returns
- Task
a task for completion
UnregisterListenerContainer(string)
public IMessageListenerContainer UnregisterListenerContainer(string id)
Parameters
idstring