Class OperationManager
- Namespace
- HotChocolate.AspNetCore.Subscriptions
- Assembly
- HotChocolate.AspNetCore.dll
The operation manager provides access to registered running operation within a socket session. The operation manager ensures that operation are correctly tracked and cleaned up after they have been completed.
public sealed class OperationManager : IOperationManager, IEnumerable<IOperationSession>, IEnumerable, IDisposable
- Inheritance
-
OperationManager
- Implements
- Inherited Members
Constructors
OperationManager(ISocketSession, ISocketSessionInterceptor, IRequestExecutor)
public OperationManager(ISocketSession socketSession, ISocketSessionInterceptor interceptor, IRequestExecutor executor)
Parameters
socketSessionISocketSessioninterceptorISocketSessionInterceptorexecutorIRequestExecutor
Methods
Complete(string)
public bool Complete(string sessionId)
Parameters
sessionIdstring
Returns
Dispose()
public void Dispose()
Enqueue(string, GraphQLRequest)
public bool Enqueue(string sessionId, GraphQLRequest request)
Parameters
sessionIdstringrequestGraphQLRequest
Returns
GetEnumerator()
public IEnumerator<IOperationSession> GetEnumerator()