Redigera

Dela via


AzureTableGrainStorage.ClearStateAsync Method

Definition

Overloads

ClearStateAsync(String, GrainReference, IGrainState)

Clear / Delete state data function for this storage provider.

ClearStateAsync<T>(String, GrainId, IGrainState<T>)

Clear / Delete state data function for this storage provider.

ClearStateAsync(String, GrainReference, IGrainState)

Source:
AzureTableStorage.cs

Clear / Delete state data function for this storage provider.

public System.Threading.Tasks.Task ClearStateAsync (string grainType, Orleans.Runtime.GrainReference grainReference, Orleans.IGrainState grainState);
abstract member ClearStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
override this.ClearStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
Public Function ClearStateAsync (grainType As String, grainReference As GrainReference, grainState As IGrainState) As Task

Parameters

grainType
String
grainReference
GrainReference
grainState
IGrainState

Returns

Implements

Remarks

If the DeleteStateOnClear is set to true then the table row for this grain will be deleted / removed, otherwise the table row will be cleared by overwriting with default / null values.

Applies to

ClearStateAsync<T>(String, GrainId, IGrainState<T>)

Clear / Delete state data function for this storage provider.

public System.Threading.Tasks.Task ClearStateAsync<T> (string grainType, Orleans.Runtime.GrainId grainId, Orleans.IGrainState<T> grainState);
abstract member ClearStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
override this.ClearStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
Public Function ClearStateAsync(Of T) (grainType As String, grainId As GrainId, grainState As IGrainState(Of T)) As Task

Type Parameters

T

Parameters

grainType
String
grainId
GrainId
grainState
IGrainState<T>

Returns

Implements

Remarks

If the DeleteStateOnClear is set to true then the table row for this grain will be deleted / removed, otherwise the table row will be cleared by overwriting with default / null values.

Applies to