Skip to content

DurableVersion.Get

Get

View source
public int Get()
Returns the version of this change which the running durable task follows.

Returns

A version from DurableVersion to DurableVersion.

Exceptions

Orleans.Durable.Tasks.DurableTaskAttemptCanceledException
The host canceled the attempt, for example because the execution recorded a version outside the supported range, which stalls it; the exception's inner exception is then a DurableTaskVersionException.
System.InvalidOperationException
The host can't record the version from the calling code, for example after ConfigureAwait(false).