C# Class Burrow.Internal.DurableConnection

Inheritance: IDurableConnection
Afficher le fichier Open project: vanthoainguyen/Burrow.NET Class Usage Examples

Protected Properties

Свойство Type Description
_retryPolicy IRetryPolicy
_unsubscribeEvents System.Action
_watcher IRabbitWatcher

Méthodes publiques

Méthode Description
Connect ( ) : void

Try to connect to rabbitmq server, retry if it cann't connect to the broker.

CreateChannel ( ) : IModel

Create a RabbitMQ channel

Dispose ( ) : void
DurableConnection ( IRetryPolicy retryPolicy, IRabbitWatcher watcher, ConnectionFactory connectionFactory ) : System

Initialize a DurableConnection object

Méthodes protégées

Méthode Description
FireConnectedEvent ( ) : void

This should be called whenever a physical connection to rabbitMQ which has the same endpoint/virtual host is made

FireDisconnectedEvent ( ) : void
SharedConnectionShutdown ( object sender, RabbitMQ.Client.ShutdownEventArgs reason ) : void

Private Methods

Méthode Description
DurableConnection ( IRetryPolicy retryPolicy, IRabbitWatcher watcher ) : System
HandleConnectionException ( Exception ex ) : void

Method Details

Connect() public méthode

Try to connect to rabbitmq server, retry if it cann't connect to the broker.
public Connect ( ) : void
Résultat void

CreateChannel() public méthode

Create a RabbitMQ channel
public CreateChannel ( ) : IModel
Résultat IModel

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DurableConnection() public méthode

Initialize a DurableConnection object
public DurableConnection ( IRetryPolicy retryPolicy, IRabbitWatcher watcher, ConnectionFactory connectionFactory ) : System
retryPolicy IRetryPolicy
watcher IRabbitWatcher
connectionFactory RabbitMQ.Client.ConnectionFactory
Résultat System

FireConnectedEvent() protected méthode

This should be called whenever a physical connection to rabbitMQ which has the same endpoint/virtual host is made
protected FireConnectedEvent ( ) : void
Résultat void

FireDisconnectedEvent() protected méthode

protected FireDisconnectedEvent ( ) : void
Résultat void

SharedConnectionShutdown() protected méthode

protected SharedConnectionShutdown ( object sender, RabbitMQ.Client.ShutdownEventArgs reason ) : void
sender object
reason RabbitMQ.Client.ShutdownEventArgs
Résultat void

Property Details

_retryPolicy protected_oe property

protected IRetryPolicy _retryPolicy
Résultat IRetryPolicy

_unsubscribeEvents protected_oe property

protected Action,System _unsubscribeEvents
Résultat System.Action

_watcher protected_oe property

protected IRabbitWatcher _watcher
Résultat IRabbitWatcher