MemoryGrainStorage.WriteStateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteStateAsync(String, GrainReference, IGrainState) |
Write state data function for this storage provider. |
WriteStateAsync<T>(String, GrainId, IGrainState<T>) |
Write data function for this storage instance. |
WriteStateAsync(String, GrainReference, IGrainState)
- Source:
- MemoryStorage.cs
Write state data function for this storage provider.
public virtual 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 Overridable Function WriteStateAsync (grainType As String, grainReference As GrainReference, grainState As IGrainState) As Task
Parameters
- grainType
- String
- grainReference
- GrainReference
- grainState
- IGrainState
Returns
Implements
Applies to
WriteStateAsync<T>(String, GrainId, IGrainState<T>)
- Source:
- MemoryStorage.cs
- Source:
- MemoryStorage.cs
- Source:
- MemoryStorage.cs
- Source:
- MemoryStorage.cs
Write data function for this storage instance.
public virtual 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 Overridable Function WriteStateAsync(Of T) (grainType As String, grainId As GrainId, grainState As IGrainState(Of T)) As Task
Type Parameters
- T
The grain state type.
Parameters
- grainType
- String
- grainId
- GrainId
Grain ID
- grainState
- IGrainState<T>
State data object to be written for this grain.
Returns
Completion promise for the Write operation on the specified grain.