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); } }
private void ScanNotUse(ServiceAddressBucket bucket) { ScanInternal(bucket.Unavaliable, _probe.IsAlive, bucket.Reuse); }
private void ScanInUse(ServiceAddressBucket bucket) { ScanInternal(bucket.Avaliable, _probe.IsNotAlive, bucket.Unuse); }
public void Scan(ServiceAddressBucket bucket) { ScanInUse(bucket); ScanNotUse(bucket); }