Edit

Share via


FaultInjectionGrainStorage.WriteStateAsync Method

Definition

Overloads

WriteStateAsync(String, GrainReference, IGrainState)

Faults if exception is provided, otherwise calls through to decorated storage provider.

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

Faults if exception is provided, otherwise calls through to decorated storage provider.

WriteStateAsync(String, GrainReference, IGrainState)

Source:
FaultInjectionStorageProvider.cs

Faults if exception is provided, otherwise calls through to decorated storage provider.

public System.Threading.Tasks.Task WriteStateAsync (string grainType, Orleans.Runtime.GrainReference grainReference, Orleans.IGrainState grainState);
abstract member WriteStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
override this.WriteStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
Public Function WriteStateAsync (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

State data object to be written for this grain.

Returns

Completion promise for the Write operation on the specified grain.

Implements

Applies to

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

Faults if exception is provided, otherwise calls through to decorated storage provider.

public System.Threading.Tasks.Task WriteStateAsync<T> (string grainType, Orleans.Runtime.GrainId grainId, Orleans.IGrainState<T> grainState);
abstract member WriteStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
override this.WriteStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
Public Function WriteStateAsync(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

Completion promise for the Write operation on the specified grain.

Implements

Applies to