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;