IActorStateManager.ContainsStateAsync(String, 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.
Checks if an actor state with specified name exists.
public System.Threading.Tasks.Task<bool> ContainsStateAsync (string stateName, System.Threading.CancellationToken cancellationToken = default);
abstract member ContainsStateAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function ContainsStateAsync (stateName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
- stateName
- String
Name of the actor state.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests.
Returns
A task that represents the asynchronous check operation. The value of TResult
parameter is true
if state with specified name exists otherwise false
.
Exceptions
The specified state name is null.
The operation was canceled.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET