Table of Contents

Interface ITimeoutOperationToken

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

Represents a token for tracking timeout operations and collecting performance metrics. Operation tracking for timeout monitoring.

public interface ITimeoutOperationToken : IDisposable
Inherited Members
Extension Methods

Properties

Context

Gets the context associated with this operation.

TimeoutContext? Context { get; }

Property Value

TimeoutContext

The associated timeout context.

Elapsed

Gets the elapsed time since the operation started.

TimeSpan Elapsed { get; }

Property Value

TimeSpan

The elapsed time since the operation started.

HasTimedOut

Gets a value indicating whether the operation timed out.

bool? HasTimedOut { get; }

Property Value

bool?

true when the operation timed out; otherwise, false or null when undetermined.

IsCompleted

Gets a value indicating whether the operation has been completed.

bool IsCompleted { get; }

Property Value

bool

true when the operation has completed; otherwise, false.

IsSuccessful

Gets a value indicating whether the operation was successful.

bool? IsSuccessful { get; }

Property Value

bool?

true when the operation succeeded; false when it failed; null if unknown.

OperationId

Gets the unique identifier for this operation.

Guid OperationId { get; }

Property Value

Guid

The unique operation identifier.

OperationType

Gets the type of operation being tracked.

TimeoutOperationType OperationType { get; }

Property Value

TimeoutOperationType

The type of operation being tracked.

StartTime

Gets the timestamp when the operation started.

DateTimeOffset StartTime { get; }

Property Value

DateTimeOffset

The operation start time.