Düzenle

Aracılığıyla paylaş


IGrainStorage.ClearStateAsync Method

Definition

Overloads

ClearStateAsync(String, GrainReference, IGrainState)

Delete / Clear data function for this storage instance.

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

Delete / Clear data function for this storage instance.

ClearStateAsync(String, GrainReference, IGrainState)

Source:
IGrainStorage.cs

Delete / Clear data function for this storage instance.

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
Public Function ClearStateAsync (grainType As String, grainReference As GrainReference, grainState As IGrainState) As Task

Parameters

grainType
String

Type of this grain [fully qualified class name]

grainReference
GrainReference

Grain reference object for this grain.

grainState
IGrainState

Copy of last-known state data object for this grain.

Returns

Completion promise for the Delete operation on the specified grain.

Applies to

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

Delete / Clear data function for this storage instance.

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

Type Parameters

T

The grain state type.

Parameters

stateName
String

Name of the state for this grain

grainId
GrainId

Grain ID

grainState
IGrainState<T>

Copy of last-known state data object for this grain.

Returns

Completion promise for the Delete operation on the specified grain.

Applies to