コード例 #1
0
 public ClientIdGeneratorProxy(string serviceName, string objectId, IAtomicLong atomicLong)
     : base(serviceName, objectId)
 {
     _atomicLong = atomicLong;
     _residue = new AtomicInteger(BlockSize);
     _local = new AtomicLong(-1);
 }
コード例 #2
0
 protected override void OnDestroy()
 {
     atomicLong.Destroy();
     residue = null;
     local = null;
 }