Beispiel #1
0
 public void Dispose()
 {
     foreach (var thriftEndpoint in thriftEndpoints)
     {
         thriftEndpoint.Dispose();
     }
     loadBalancer.Dispose();
 }
Beispiel #2
0
        protected virtual void Dispose(bool isDisposing)
        {
            if (!isDisposing)
            {
                return;
            }

            if (_loadBalancer != null)
            {
                _loadBalancer.Dispose();
                _loadBalancer = null;
            }
            _logger = null;
        }
Beispiel #3
0
 public void TearDown()
 {
     _loadBalancer?.Dispose();
 }