State Manager. Set State Async<T>(String, T, CancellationToken) Method
Sets an actor state with given state name to specified value. If an actor state with specified name does not exist, it is added.
public System.Threading.Tasks.Task SetStateAsync<T> (string stateName, T value, System.Threading.CancellationToken cancellationToken = null);
abstract member SetStateAsync : string * 'T * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Type of value associated with given state name.
Name of the actor state to set.
Value of the actor state.
The token to monitor for cancellation requests.
A task that represents the asynchronous set operation.
The specified state name is null.
The operation was canceled.
The type of state value
T must be
Data Contract serializable.