Table of Contents

Struct ReactiveTaskCompletionParams

Namespace
LfrlAnvil.Reactive.Chrono
Assembly
LfrlAnvil.Reactive.Chrono.dll

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 ReactiveTaskInvocationParams

Invocation parameters.

ElapsedTime Duration

Amount of time taken for this invocation to end.

Exception Exception

Optional 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

TaskCancellationReason?

ElapsedTime

Amount of time taken for this invocation to end.

public Duration ElapsedTime { get; init; }

Property Value

Duration

Exception

Optional exception thrown by this invocation.

public Exception? Exception { get; init; }

Property Value

Exception

Invocation

Invocation parameters.

public ReactiveTaskInvocationParams Invocation { get; init; }

Property Value

ReactiveTaskInvocationParams

IsFailed

Specifies whether or not the invocation ended with an error.

public bool IsFailed { get; }

Property Value

bool

IsSuccessful

Specifies whether or not the invocation ended successfully.

public bool IsSuccessful { get; }

Property Value

bool