Skip to content

Commit ae7da16

Browse files
authored
Move IDisposable to implementation (#417)
1 parent f810315 commit ae7da16

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GraphQL.Client.Abstractions/IGraphQLClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace GraphQL.Client.Abstractions
77
{
8-
public interface IGraphQLClient : IDisposable
8+
public interface IGraphQLClient
99
{
1010
Task<GraphQLResponse<TResponse>> SendQueryAsync<TResponse>(GraphQLRequest request, CancellationToken cancellationToken = default);
1111

@@ -14,7 +14,7 @@ public interface IGraphQLClient : IDisposable
1414
/// <summary>
1515
/// Creates a subscription to a GraphQL server. The connection is not established until the first actual subscription is made.<br/>
1616
/// All subscriptions made to this stream share the same hot observable.<br/>
17-
/// The stream must be recreated completely after an error has occured within its logic (i.e. a <see cref="WebSocketException"/>)
17+
/// The stream must be recreated completely after an error has occurred within its logic (i.e. a <see cref="WebSocketException"/>)
1818
/// </summary>
1919
/// <param name="request">the GraphQL request for this subscription</param>
2020
/// <returns>an observable stream for the specified subscription</returns>

src/GraphQL.Client/GraphQLHttpClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace GraphQL.Client.Http
1414
{
15-
public class GraphQLHttpClient : IGraphQLClient
15+
public class GraphQLHttpClient : IGraphQLClient, IDisposable
1616
{
1717
private readonly Lazy<GraphQLHttpWebSocket> _lazyHttpWebSocket;
1818
private GraphQLHttpWebSocket GraphQlHttpWebSocket => _lazyHttpWebSocket.Value;

0 commit comments

Comments
 (0)