Class RabbitListenerEndpointRegistry
Inheritance
System.Object
RabbitListenerEndpointRegistry
Implements
ISmartLifecycle
IDisposable
IServiceNameAware
Assembly: Steeltoe.Messaging.RabbitMQ.dll
Syntax
public class RabbitListenerEndpointRegistry : object, IRabbitListenerEndpointRegistry
Constructors
|
Edit this page
View Source
RabbitListenerEndpointRegistry(IApplicationContext, ILogger)
Declaration
public RabbitListenerEndpointRegistry(IApplicationContext applicationContext, ILogger logger = null)
Parameters
Type |
Name |
Description |
IApplicationContext |
applicationContext |
|
ILogger |
logger |
|
Fields
|
Edit this page
View Source
DEFAULT_SERVICE_NAME
Declaration
public const string DEFAULT_SERVICE_NAME = null
Field Value
Type |
Description |
System.String |
|
Properties
|
Edit this page
View Source
ApplicationContext
Declaration
public IApplicationContext ApplicationContext { get; set; }
Property Value
Type |
Description |
IApplicationContext |
|
|
Edit this page
View Source
IsAutoStartup
Declaration
public bool IsAutoStartup { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
IsRunning
Declaration
public bool IsRunning { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Phase
Declaration
public int Phase { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
ServiceName
Declaration
public string ServiceName { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
CreateListenerContainer(IRabbitListenerEndpoint, IRabbitListenerContainerFactory)
Declaration
protected IMessageListenerContainer CreateListenerContainer(IRabbitListenerEndpoint endpoint, IRabbitListenerContainerFactory factory)
Parameters
Returns
|
Edit this page
View Source
Dispose()
Declaration
|
Edit this page
View Source
GetListenerContainer(String)
Declaration
public IMessageListenerContainer GetListenerContainer(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
|
Edit this page
View Source
GetListenerContainerIds()
Declaration
public ISet<string> GetListenerContainerIds()
Returns
Type |
Description |
ISet<System.String> |
|
|
Edit this page
View Source
GetListenerContainers()
Declaration
public ICollection<IMessageListenerContainer> GetListenerContainers()
Returns
|
Edit this page
View Source
RegisterListenerContainer(IRabbitListenerEndpoint, IRabbitListenerContainerFactory)
Declaration
public void RegisterListenerContainer(IRabbitListenerEndpoint endpoint, IRabbitListenerContainerFactory factory)
Parameters
|
Edit this page
View Source
RegisterListenerContainer(IRabbitListenerEndpoint, IRabbitListenerContainerFactory, Boolean)
Declaration
public void RegisterListenerContainer(IRabbitListenerEndpoint endpoint, IRabbitListenerContainerFactory factory, bool startImmediately)
Parameters
|
Edit this page
View Source
Start()
Declaration
public async Task Start()
Returns
|
Edit this page
View Source
Stop()
Declaration
Returns
|
Edit this page
View Source
Stop(Action)
Declaration
public async Task Stop(Action callback)
Parameters
Type |
Name |
Description |
Action |
callback |
|
Returns
|
Edit this page
View Source
UnregisterListenerContainer(String)
Declaration
public IMessageListenerContainer UnregisterListenerContainer(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Implements
ISmartLifecycle
IDisposable
IServiceNameAware