Interface IOperationSession
- Namespace
- HotChocolate.AspNetCore.Subscriptions
- Assembly
- HotChocolate.AspNetCore.dll
Represents a session with an execution engine subscription. A subscription session is created within a ISocketSession. Each socket session can have multiple subscription sessions open.
public interface IOperationSession : IDisposable
- Inherited Members
Properties
Id
Gets the subscription id that the client has provided.
string Id { get; }
Property Value
IsCompleted
Specifies if this session is completed and will yield no further results.
bool IsCompleted { get; }
Property Value
Methods
BeginExecute(GraphQLRequest, CancellationToken)
Starts executing the operation.
void BeginExecute(GraphQLRequest request, CancellationToken cancellationToken)
Parameters
request
GraphQLRequestThe graphql request.
cancellationToken
CancellationTokenThe cancellation token.
Events
Completed
An event that indicates that the underlying subscription has completed.
event EventHandler? Completed