Class RabbitAdmin
public class RabbitAdmin : IRabbitAdmin, IServiceNameAware, IConnectionListener
- Inheritance
-
RabbitAdmin
- Implements
- Inherited Members
Constructors
RabbitAdmin(IApplicationContext, IConnectionFactory, ILogger)
[ActivatorUtilitiesConstructor]
public RabbitAdmin(IApplicationContext applicationContext, IConnectionFactory connectionFactory, ILogger logger = null)
Parameters
applicationContext
IApplicationContextconnectionFactory
IConnectionFactorylogger
ILogger
RabbitAdmin(IConnectionFactory, ILogger)
public RabbitAdmin(IConnectionFactory connectionFactory, ILogger logger = null)
Parameters
connectionFactory
IConnectionFactorylogger
ILogger
RabbitAdmin(RabbitTemplate, ILogger)
public RabbitAdmin(RabbitTemplate template, ILogger logger = null)
Parameters
template
RabbitTemplatelogger
ILogger
Fields
DEFAULT_SERVICE_NAME
public const string DEFAULT_SERVICE_NAME = "rabbitAdmin"
Field Value
QUEUE_CONSUMER_COUNT
public const string QUEUE_CONSUMER_COUNT = "QUEUE_CONSUMER_COUNT"
Field Value
QUEUE_MESSAGE_COUNT
public const string QUEUE_MESSAGE_COUNT = "QUEUE_MESSAGE_COUNT"
Field Value
QUEUE_NAME
public const string QUEUE_NAME = "QUEUE_NAME"
Field Value
Properties
ApplicationContext
public IApplicationContext ApplicationContext { get; set; }
Property Value
AutoStartup
public bool AutoStartup { get; set; }
Property Value
ConnectionFactory
public IConnectionFactory ConnectionFactory { get; set; }
Property Value
ExplicitDeclarationsOnly
public bool ExplicitDeclarationsOnly { get; set; }
Property Value
IgnoreDeclarationExceptions
public bool IgnoreDeclarationExceptions { get; set; }
Property Value
IsAutoStartup
public bool IsAutoStartup { get; set; }
Property Value
IsRunning
public bool IsRunning { get; }
Property Value
LastDeclarationExceptionEvent
public DeclarationExceptionEvent LastDeclarationExceptionEvent { get; }
Property Value
RabbitTemplate
public RabbitTemplate RabbitTemplate { get; }
Property Value
RetryDisabled
public bool RetryDisabled { get; set; }
Property Value
RetryTemplate
public RetryTemplate RetryTemplate { get; set; }
Property Value
ServiceName
public string ServiceName { get; set; }
Property Value
Methods
DeclareBinding(IBinding)
public void DeclareBinding(IBinding binding)
Parameters
binding
IBinding
DeclareExchange(IExchange)
public void DeclareExchange(IExchange exchange)
Parameters
exchange
IExchange
DeclareQueue()
public IQueue DeclareQueue()
Returns
DeclareQueue(IQueue)
public string DeclareQueue(IQueue queue)
Parameters
queue
IQueue
Returns
DeleteExchange(string)
public bool DeleteExchange(string exchangeName)
Parameters
exchangeName
string
Returns
DeleteQueue(string)
public bool DeleteQueue(string queueName)
Parameters
queueName
string
Returns
DeleteQueue(string, bool, bool)
public void DeleteQueue(string queueName, bool unused, bool empty)
Parameters
GetQueueInfo(string)
public QueueInformation GetQueueInfo(string queueName)
Parameters
queueName
string
Returns
GetQueueProperties(string)
public Dictionary<string, object> GetQueueProperties(string queueName)
Parameters
queueName
string
Returns
Initialize()
public void Initialize()
OnClose(IConnection)
Called when connection is closed
public void OnClose(IConnection connection)
Parameters
connection
IConnectionthe connection
OnCreate(IConnection)
Called when a new connection is established
public void OnCreate(IConnection connection)
Parameters
connection
IConnectionthe connection
OnShutDown(ShutdownEventArgs)
Called when connection is forced to close
public void OnShutDown(ShutdownEventArgs args)
Parameters
args
ShutdownEventArgsthe event
PurgeQueue(string)
public uint PurgeQueue(string queueName)
Parameters
queueName
string
Returns
PurgeQueue(string, bool)
public void PurgeQueue(string queueName, bool noWait)
Parameters
RemoveBinding(IBinding)
public void RemoveBinding(IBinding binding)
Parameters
binding
IBinding