Exemplo n.º 1
0
 public ReadWriteLock(
     IOptions <TransactionalStateOptions> options,
     TransactionQueue <TState> queue,
     BatchWorker storageWorker,
     ILogger logger)
 {
     this.options       = options.Value;
     this.queue         = queue;
     this.storageWorker = storageWorker;
     this.logger        = logger;
     this.lockWorker    = new BatchWorkerFromDelegate(LockWork);
 }
Exemplo n.º 2
0
 public ReadWriteLock(
     IOptions <TransactionalStateOptions> options,
     TransactionQueue <TState> queue,
     BatchWorker storageWorker,
     ILogger logger,
     IActivationLifetime activationLifetime)
 {
     this.options            = options.Value;
     this.queue              = queue;
     this.storageWorker      = storageWorker;
     this.logger             = logger;
     this.activationLifetime = activationLifetime;
     this.lockWorker         = new BatchWorkerFromDelegate(LockWork, this.activationLifetime.OnDeactivating);
 }
Exemplo n.º 3
0
 public TransactionManager(TransactionQueue <TState> queue)
 {
     this.queue = queue ?? throw new ArgumentNullException(nameof(queue));
 }
Exemplo n.º 4
0
 public TransactionalResource(TransactionQueue <TState> queue)
 {
     this.queue = queue;
 }