Table of Contents

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

socketSession ISocketSession
interceptor ISocketSessionInterceptor
executor IRequestExecutor

Methods

Complete(string)

public bool Complete(string sessionId)

Parameters

sessionId string

Returns

bool

Dispose()

public void Dispose()

Enqueue(string, GraphQLRequest)

public bool Enqueue(string sessionId, GraphQLRequest request)

Parameters

sessionId string
request GraphQLRequest

Returns

bool

GetEnumerator()

public IEnumerator<IOperationSession> GetEnumerator()

Returns

IEnumerator<IOperationSession>