Freigeben über


IGrainRuntime.GetStorage Methode

Definition

Überlädt

GetStorage<TGrainState>(Grain)
GetStorage<TGrainState>(IGrainContext)

Ruft den Kornspeicher für das bereitgestellte Grain ab.

GetStorage<TGrainState>(Grain)

Quelle:
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)

Typparameter

TGrainState

Parameter

grain
Grain

Gibt zurück

IStorage<TGrainState>

Gilt für:

GetStorage<TGrainState>(IGrainContext)

Ruft den Kornspeicher für das bereitgestellte Grain ab.

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)

Typparameter

TGrainState

Der Kornzustandstyp.

Parameter

grainContext
IGrainContext

Der Körnungskontext.

Gibt zurück

IStorage<TGrainState>

Der Getreidespeicher für das bereitgestellte Korn.

Gilt für: