Class OperationFetchResultContext
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
ServicestringService name.
OperationstringOperation name.
CancellationTokenCancellationTokenCancellation token for when this specific call is canceled (not to be confused with operation cancellation).
OperationTokenstringToken referencing the operation.
Properties
OperationToken
Token referencing the operation.
public string OperationToken { get; init; }
Property Value
Timeout
Gets the timeout for how long the user wants to wait on the result.
public TimeSpan? Timeout { get; init; }
Property Value
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.