예제 #1
0
 public void FromModel(ServiceAddressPoolModel model)
 {
     foreach (var kv in model.Buckets)
     {
         var bucket = new ServiceAddressBucket(kv.Key);
         bucket.FromModel(kv.Value);
         this._buckets.TryAdd(kv.Key, bucket);
     }
 }
예제 #2
0
 private void ScanNotUse(ServiceAddressBucket bucket)
 {
     ScanInternal(bucket.Unavaliable, _probe.IsAlive, bucket.Reuse);
 }
예제 #3
0
 private void ScanInUse(ServiceAddressBucket bucket)
 {
     ScanInternal(bucket.Avaliable, _probe.IsNotAlive, bucket.Unuse);
 }
예제 #4
0
        public void Scan(ServiceAddressBucket bucket)
        {
            ScanInUse(bucket);

            ScanNotUse(bucket);
        }