C# Class Burrow.Internal.DurableConnection

Inheritance: IDurableConnection
Mostra file Open project: vanthoainguyen/Burrow.NET Class Usage Examples

Protected Properties

Property Type Description
_retryPolicy IRetryPolicy
_unsubscribeEvents System.Action
_watcher IRabbitWatcher

Public Methods

Method 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

Protected Methods

Method 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

Method Description
DurableConnection ( IRetryPolicy retryPolicy, IRabbitWatcher watcher ) : System
HandleConnectionException ( Exception ex ) : void

Method Details

Connect() public method

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

CreateChannel() public method

Create a RabbitMQ channel
public CreateChannel ( ) : IModel
return IModel

Dispose() public method

public Dispose ( ) : void
return void

DurableConnection() public method

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

FireConnectedEvent() protected method

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

FireDisconnectedEvent() protected method

protected FireDisconnectedEvent ( ) : void
return void

SharedConnectionShutdown() protected method

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

Property Details

_retryPolicy protected_oe property

protected IRetryPolicy _retryPolicy
return IRetryPolicy

_unsubscribeEvents protected_oe property

protected Action,System _unsubscribeEvents
return System.Action

_watcher protected_oe property

protected IRabbitWatcher _watcher
return IRabbitWatcher