Table of Contents

Interface ITimePolicyConfiguration

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

Provides additional timeout configuration properties and methods. Implementations that support these operations should implement this interface alongside ITimePolicy.

public interface ITimePolicyConfiguration
Extension Methods

Properties

SerializationTimeout

Gets the timeout for serialization operations.

TimeSpan SerializationTimeout { get; }

Property Value

TimeSpan

The serialization timeout duration.

TransportTimeout

Gets the timeout for transport operations.

TimeSpan TransportTimeout { get; }

Property Value

TimeSpan

The transport timeout duration.

ValidationTimeout

Gets the timeout for validation operations.

TimeSpan ValidationTimeout { get; }

Property Value

TimeSpan

The validation timeout duration.

Methods

ShouldApplyTimeout(TimeoutOperationType, TimeoutContext?)

Determines if a timeout should be applied based on the operation context.

bool ShouldApplyTimeout(TimeoutOperationType operationType, TimeoutContext? context = null)

Parameters

operationType TimeoutOperationType

The type of operation being timed.

context TimeoutContext

Optional context providing additional information for the decision.

Returns

bool

true if a timeout should be applied; otherwise, false.