IGrainRuntime.GetStorage 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
GetStorage<TGrainState>(Grain) | |
GetStorage<TGrainState>(IGrainContext) |
Gets grain storage for the provided grain. |
GetStorage<TGrainState>(Grain)
- Source:
- IGrainRuntime.cs
public Orleans.Core.IStorage<TGrainState> GetStorage<TGrainState> (Orleans.Grain grain) where TGrainState : new();
public Orleans.Core.IStorage<TGrainState> GetStorage<TGrainState> (Orleans.Grain grain);
abstract member GetStorage : Orleans.Grain -> Orleans.Core.IStorage<'GrainState (requires 'GrainState : (new : unit -> 'GrainState))> (requires 'GrainState : (new : unit -> 'GrainState))
abstract member GetStorage : Orleans.Grain -> Orleans.Core.IStorage<'GrainState>
Public Function GetStorage(Of TGrainState As New) (grain As Grain) As IStorage(Of TGrainState)
Public Function GetStorage(Of TGrainState) (grain As Grain) As IStorage(Of TGrainState)
Type Parameters
- TGrainState
Parameters
- grain
- Grain
Returns
IStorage<TGrainState>
Applies to
GetStorage<TGrainState>(IGrainContext)
Gets grain storage for the provided grain.
public Orleans.Core.IStorage<TGrainState> GetStorage<TGrainState> (Orleans.Runtime.IGrainContext grainContext);
abstract member GetStorage : Orleans.Runtime.IGrainContext -> Orleans.Core.IStorage<'GrainState>
Public Function GetStorage(Of TGrainState) (grainContext As IGrainContext) As IStorage(Of TGrainState)
Type Parameters
- TGrainState
The grain state type.
Parameters
- grainContext
- IGrainContext
The grain context.
Returns
IStorage<TGrainState>
The grain storage for the provided grain.