Class GraphQLSubscription
public sealed class GraphQLSubscription : IAsyncEnumerable<GraphQLResponse>, IAsyncDisposable
- Inheritance
-
GraphQLSubscription
- Implements
- Inherited Members
- Extension Methods
Properties
IsCompleted
public bool IsCompleted { get; }
Property Value
Transport
public GraphQLSubscriptionTransport Transport { get; }
Property Value
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
ExpectNextAsync<TShape>(TShape, CancellationToken)
public Task<GraphQLResponse> ExpectNextAsync<TShape>(TShape expectedShape, CancellationToken cancellationToken = default)
Parameters
expectedShapeTShapecancellationTokenCancellationToken
Returns
Type Parameters
TShape
GetAsyncEnumerator(CancellationToken)
Returns an enumerator that iterates asynchronously through the collection.
public IAsyncEnumerator<GraphQLResponse> GetAsyncEnumerator(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA CancellationToken that may be used to cancel the asynchronous iteration.
Returns
- IAsyncEnumerator<GraphQLResponse>
An enumerator that can be used to iterate asynchronously through the collection.
NextAsync(CancellationToken)
public Task<GraphQLResponse?> NextAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken