Skip to content

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

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

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

Parameters

grainTypestring
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.