private bool disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { _authenticationClient?.Dispose(); _client?.Dispose(); } disposedValue = true; } }
public void Dispose() { _client?.Dispose(); }
public void Dispose() => _client.Dispose();