Пример #1
0
 public StateInfo(Process process, AffinityInfo <TAffinity, TKey> keyInfo)
 {
     this.process = process;
     process.States[typeof(TState)] = this;
     this.keyInfo = keyInfo;
     ProcessSubscriptions();
 }
Пример #2
0
 public PartitionLock(Process process, AffinityInfo <TAffinity, TKey> keyInfo)
 {
     this.process = process;
     process.PartitionLocks[typeof(TAffinity)] = this;
     this.keyInfo          = keyInfo;
     keyInfo.PartitionLock = this;
 }