IActorStateManager.GetStateNamesAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an enumerable of all actor state names for current actor.
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<string>> GetStateNamesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetStateNamesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<string>>
Public Function GetStateNamesAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of String))
Parameters
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task that represents the asynchronous enumeration operation. The value of TResult parameter is an enumerable of all actor state names.
Exceptions
The operation was canceled.