Compartilhar via


TaskOrchestrationContext.CurrentUtcDateTime Property

Definition

Gets the current orchestration time in UTC.

public abstract DateTime CurrentUtcDateTime { get; }
member this.CurrentUtcDateTime : DateTime
Public MustOverride ReadOnly Property CurrentUtcDateTime As DateTime

Property Value

Remarks

The current orchestration time is stored in the orchestration history and this API will return the same value each time it is called from a particular point in the orchestration's execution. It is a deterministic, replay-safe replacement for existing .NET APIs for getting the current time, such as UtcNow and UtcNow.

Applies to