Skip to content

DurableTaskContext.GetVersion(string, int, int)

GetVersion(string, int, int)

virtual
View source
protected internal virtual int GetVersion(string name, int minSupported, int maxSupported)
Returns the version of the change name which this execution follows, deciding and recording it at the execution's first call for the name.

Parameters

namestring
The change's validated name.
minSupportedint
The oldest version which the calling code supports, at least 0.
maxSupportedint
The newest version, at least minSupported.

Returns

The execution's version, from minSupported to maxSupported.