Click or drag to resize

WorkflowUtcNowAsync Method

Returns the current workflow time (UTC).

Note Note
This must used instead of calling UtcNow or any other time method to guarantee determinism when a workflow is replayed.

Namespace:  Neon.Cadence
Assembly:  Neon.Cadence (in Neon.Cadence.dll) Version: 2.14.0
public Task<DateTime> UtcNowAsync()

Return Value

Type: TaskDateTime
The current workflow time.
ObjectDisposedExceptionThrown if the associated Cadence client is disposed.
NotSupportedExceptionThrown when this is called outside of a workflow entry point method.
See Also