State Manager. Try Remove State Async(String, CancellationToken) Method
Attempts to remove an actor state with specified state name.
public System.Threading.Tasks.Task<bool> TryRemoveStateAsync (string stateName, System.Threading.CancellationToken cancellationToken = null);
abstract member TryRemoveStateAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Name of the actor state to remove.
The token to monitor for cancellation requests.
A task that represents the asynchronous remove operation. The value of TResult parameter indicates if the state was successfully removed.
The specified state name is null.
The operation was canceled.