共用方式為


IGrainRuntime.GetStorage 方法

定義

多載

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

取得所提供粒紋的細微性儲存體。

GetStorage<TGrainState>(Grain)

來源:
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)

類型參數

TGrainState

參數

grain
Grain

傳回

IStorage<TGrainState>

適用於

GetStorage<TGrainState>(IGrainContext)

取得所提供粒紋的細微性儲存體。

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)

類型參數

TGrainState

細微性狀態類型。

參數

grainContext
IGrainContext

細微性內容。

傳回

IStorage<TGrainState>

所提供之粒紋的細微性儲存區。

適用於