Skip to content

IGrainStorage.ClearStateAsync(string, GrainId, IGrainState<T>, CancellationToken)

ClearStateAsync(string, GrainId, IGrainState<T>, CancellationToken)

virtual
View source
public virtual Task ClearStateAsync<T>(string stateName, GrainId grainId, IGrainState<T> grainState, CancellationToken cancellationToken)
Delete / Clear data function for this storage instance.

Parameters

stateNamestring
Name of the state for this grain.
grainIdGrainId
Grain ID.
grainStateIGrainState<T>
Copy of last-known state data object for this grain.
cancellationTokenCancellationToken
The cancellation token.

Returns

Completion promise for the Delete operation on the specified grain.