File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 66
77namespace GraphQL . Client {
88
9+ /// <summary>
10+ /// Represents the Interface that any GraphQL Client must implement
11+ /// </summary>
912 public interface IGraphQLClient : IDisposable {
1013
14+ /// <summary>
15+ /// Send a Query async
16+ /// </summary>
17+ /// <param name="request">The Request</param>
18+ /// <param name="cancellationToken">The Cancellation Token</param>
19+ /// <returns>The Response</returns>
1120 Task < GraphQLResponse > SendQueryAsync ( GraphQLRequest request , CancellationToken cancellationToken = default ) ;
1221
22+ /// <summary>
23+ /// Send a Mutation Async
24+ /// </summary>
25+ /// <param name="request">The Request</param>
26+ /// <param name="cancellationToken">The Cancellation Token</param>
27+ /// <returns>The Response</returns>
1328 Task < GraphQLResponse > SendMutationAsync ( GraphQLRequest request , CancellationToken cancellationToken = default ) ;
1429
30+ /// <summary>
31+ /// Send a Subscription async
32+ /// </summary>
33+ /// <param name="request">The Request</param>
34+ /// <param name="cancellationToken">The Cancellation Token</param>
35+ /// <returns>The Subscription Response</returns>
36+ [ Obsolete ( "EXPERIMENTAL" ) ]
1537 Task < IGraphQLSubscriptionResult > SendSubscribeAsync ( GraphQLRequest request , CancellationToken cancellationToken = default ) ;
1638
1739 }
Original file line number Diff line number Diff line change 33
44namespace GraphQL . Client {
55
6+ /// <summary>
7+ /// Represents the Result of a subscription
8+ /// </summary>
9+ [ Obsolete ( "EXPERIMENTAL" ) ]
610 public interface IGraphQLSubscriptionResult : IDisposable {
711
12+ /// <summary>
13+ /// Event triggered when a new Response is received
14+ /// </summary>
815 event Action < GraphQLResponse > OnReceive ;
916
17+ /// <summary>
18+ /// Last Response Received
19+ /// </summary>
1020 GraphQLResponse LastResponse { get ; }
1121
1222 }
You can’t perform that action at this time.
0 commit comments