Method GetAsync
GetAsync(string, CancellationToken)
Gets the state with the specified ID, or returns null if there is none, or the ID does not have the form of an ID.
Declaration
public ValueTask<T?> GetAsync(string id, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The ID that AddAsync(T, CancellationToken) returned. |
| CancellationToken | cancellationToken | A token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask<T> |