C# Class paramore.brighter.commandprocessor.messaginggateway.rmq.MessageGatewayConnectionPool

Class MessageGatewayConnectionPool.
Datei anzeigen Open project: iancooper/Paramore Class Usage Examples

Public Methods

Method Description
GetConnection ( ConnectionFactory connectionFactory ) : IConnection

Return matching RabbitMQ connection if exist (match by amqp scheme) or create new connection to RabbitMQ (thread-safe)

Private Methods

Method Description
CreateConnection ( ConnectionFactory connectionFactory ) : IConnection
GetConnectionId ( ConnectionFactory connectionFactory ) : string
TryRemoveConnection ( string connectionId ) : void

Method Details

GetConnection() public method

Return matching RabbitMQ connection if exist (match by amqp scheme) or create new connection to RabbitMQ (thread-safe)
public GetConnection ( ConnectionFactory connectionFactory ) : IConnection
connectionFactory RabbitMQ.Client.ConnectionFactory
return IConnection