Class GraphQLSubscription

Namespace
ProtoTest.GraphQL
Assembly
ProtoTest.GraphQL.dll
public sealed class GraphQLSubscription : IAsyncEnumerable<GraphQLResponse>, IAsyncDisposable
Inheritance
GraphQLSubscription
Implements
Inherited Members
Extension Methods

Properties

IsCompleted

public bool IsCompleted { get; }

Property Value

bool

Transport

public GraphQLSubscriptionTransport Transport { get; }

Property Value

GraphQLSubscriptionTransport

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

expectedShape TShape
cancellationToken CancellationToken

Returns

Task<GraphQLResponse>

Type Parameters

TShape

GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

public IAsyncEnumerator<GraphQLResponse> GetAsyncEnumerator(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A 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

cancellationToken CancellationToken

Returns

Task<GraphQLResponse>