Exemple #1
0
 public RabbitConnection(ILog log, int maxModels, IConnection connection)
 {
     _connection = connection;
     _log = log;
     _asyncLock = new AsyncLock(maxModels);
     _models = new ConcurrentBag<IModel>(Enumerable.Range(0, maxModels).Select(_ => connection.CreateModel()));
 }
Exemple #2
0
 public AsyncLockReleaser(AsyncLock asyncLock)
 {
     _asyncLock = asyncLock;
 }
Exemple #3
0
 public AsyncLockReleaser(AsyncLock asyncLock)
 {
     _asyncLock = asyncLock;
 }