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())); }
public AsyncLockReleaser(AsyncLock asyncLock) { _asyncLock = asyncLock; }