From b28f5a9b7cceda2ef704fa366b038da375ee7069 Mon Sep 17 00:00:00 2001 From: Ivan Maximov Date: Sun, 17 Jul 2022 00:03:10 +0300 Subject: [PATCH] Move IDisposable to implementation --- src/GraphQL.Client.Abstractions/IGraphQLClient.cs | 4 ++-- src/GraphQL.Client/GraphQLHttpClient.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GraphQL.Client.Abstractions/IGraphQLClient.cs b/src/GraphQL.Client.Abstractions/IGraphQLClient.cs index 0508f8b5..40ecac8e 100644 --- a/src/GraphQL.Client.Abstractions/IGraphQLClient.cs +++ b/src/GraphQL.Client.Abstractions/IGraphQLClient.cs @@ -5,7 +5,7 @@ namespace GraphQL.Client.Abstractions { - public interface IGraphQLClient : IDisposable + public interface IGraphQLClient { Task> SendQueryAsync(GraphQLRequest request, CancellationToken cancellationToken = default); @@ -14,7 +14,7 @@ public interface IGraphQLClient : IDisposable /// /// Creates a subscription to a GraphQL server. The connection is not established until the first actual subscription is made.
/// All subscriptions made to this stream share the same hot observable.
- /// The stream must be recreated completely after an error has occured within its logic (i.e. a ) + /// The stream must be recreated completely after an error has occurred within its logic (i.e. a ) ///
/// the GraphQL request for this subscription /// an observable stream for the specified subscription diff --git a/src/GraphQL.Client/GraphQLHttpClient.cs b/src/GraphQL.Client/GraphQLHttpClient.cs index ea095fc6..8df8951e 100644 --- a/src/GraphQL.Client/GraphQLHttpClient.cs +++ b/src/GraphQL.Client/GraphQLHttpClient.cs @@ -12,7 +12,7 @@ namespace GraphQL.Client.Http { - public class GraphQLHttpClient : IGraphQLClient + public class GraphQLHttpClient : IGraphQLClient, IDisposable { private readonly Lazy _lazyHttpWebSocket; private GraphQLHttpWebSocket GraphQlHttpWebSocket => _lazyHttpWebSocket.Value;