Пример #1
0
 public ServerTransactionStorage(int capacity, Transaction.Kind kind, IRelaytedTransactionId inviteStorage)
 {
     this.sync               = new object();
     this.trasactionKind     = kind;
     this.transactions       = new Dictionary <int, T>(capacity);
     this.transactionIndexes = new Dictionary <BadServerTransactionKey, int>(capacity);
     this.inviteStorage      = inviteStorage;
 }
 public ClientTransactionStorage(int capacity, Transaction.Kind kind)
 {
     sync           = new object();
     trasactionKind = kind;
     transactions   = new Dictionary <int, T>(capacity);
 }