Share via


DurabilityProvider.ValidateDelayTime(TimeSpan, String) Method

Definition

Uses durability provider specific logic to verify whether a timespan for a timer, timeout or retry interval is allowed by the provider.

public virtual bool ValidateDelayTime (TimeSpan timespan, out string errorMessage);
abstract member ValidateDelayTime : TimeSpan * string -> bool
override this.ValidateDelayTime : TimeSpan * string -> bool
Public Overridable Function ValidateDelayTime (timespan As TimeSpan, ByRef errorMessage As String) As Boolean

Parameters

timespan
TimeSpan

The timespan that the code will have to wait for.

errorMessage
String

The error message if the timespan is invalid.

Returns

A boolean indicating whether the time interval is valid.

Applies to