Example #1
0
 private void _dispose()
 {
     _disposed = true;
     Debug.WriteLine($"disposing GraphQLHttpClient on endpoint {Options.EndPoint}");
     _cancellationTokenSource.Cancel();
     HttpClient.Dispose();
     _graphQlHttpWebSocket.Dispose();
     _cancellationTokenSource.Dispose();
 }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         Debug.WriteLine($"Disposing GraphQLHttpClient on endpoint {Options.EndPoint}");
         _cancellationTokenSource.Cancel();
         HttpClient.Dispose();
         _graphQlHttpWebSocket.Dispose();
         _cancellationTokenSource.Dispose();
     }
 }