Table of Contents

Class OperationFetchResultContext

Namespace
NexusRpc.Handlers
Assembly
NexusRpc.dll

Context provided when fetch result is called.

public record OperationFetchResultContext : OperationContext, IEquatable<OperationContext>, IEquatable<OperationFetchResultContext>
Inheritance
OperationFetchResultContext
Implements
Inherited Members

Constructors

OperationFetchResultContext(string, string, CancellationToken, string)

Context provided when fetch result is called.

public OperationFetchResultContext(string Service, string Operation, CancellationToken CancellationToken, string OperationToken)

Parameters

Service string

Service name.

Operation string

Operation name.

CancellationToken CancellationToken

Cancellation token for when this specific call is canceled (not to be confused with operation cancellation).

OperationToken string

Token referencing the operation.

Properties

OperationToken

Token referencing the operation.

public string OperationToken { get; init; }

Property Value

string

Timeout

Gets the timeout for how long the user wants to wait on the result.

public TimeSpan? Timeout { get; init; }

Property Value

TimeSpan?

Remarks

If this value is null, the result or OperationStillRunningException should be returned/thrown right away. If this value is present, the fetch result call should try to wait up until this duration or until an implementer chosen maximum, whichever ends sooner, before returning the result or throwing OperationStillRunningException.