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