IActorStateManager.GetStateNamesAsync(CancellationToken) Method

Definition

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.

Applies to