예제 #1
0
 private void ReturnConnection(IConnection connection)
 {
     OnReturnConnection?.Invoke(typeof(AmqpHelper), new EventArgs());
     ConnectionPool.Return(ConnectionUri, connection);
 }
예제 #2
0
 protected void Execute(Action <IModel> action)
 {
     ConnectionPool.Execute(ConnectionUri, action);
 }
예제 #3
0
 private IConnection TakeConnection()
 {
     OnTakeConnection?.Invoke(typeof(AmqpHelper), new EventArgs());
     return(ConnectionPool.Take(ConnectionUri));
 }