Struct ReactiveTaskCompletionParams
Represents parameters of reactive task completion.
public readonly record struct ReactiveTaskCompletionParams : IEquatable<ReactiveTaskCompletionParams>
- Implements
- Inherited Members
Constructors
ReactiveTaskCompletionParams(ReactiveTaskInvocationParams, Duration, Exception?, TaskCancellationReason?)
Represents parameters of reactive task completion.
public ReactiveTaskCompletionParams(ReactiveTaskInvocationParams Invocation, Duration ElapsedTime, Exception? Exception, TaskCancellationReason? CancellationReason)
Parameters
Invocation
ReactiveTaskInvocationParamsInvocation parameters.
ElapsedTime
DurationAmount of time taken for this invocation to end.
Exception
ExceptionOptional exception thrown by this invocation.
CancellationReason
TaskCancellationReason?Optional cancellation reason that caused this task to end.
Properties
CancellationReason
Optional cancellation reason that caused this task to end.
public TaskCancellationReason? CancellationReason { get; init; }
Property Value
ElapsedTime
Amount of time taken for this invocation to end.
public Duration ElapsedTime { get; init; }
Property Value
Exception
Optional exception thrown by this invocation.
public Exception? Exception { get; init; }
Property Value
Invocation
Invocation parameters.
public ReactiveTaskInvocationParams Invocation { get; init; }
Property Value
IsFailed
Specifies whether or not the invocation ended with an error.
public bool IsFailed { get; }
Property Value
IsSuccessful
Specifies whether or not the invocation ended successfully.
public bool IsSuccessful { get; }