IGrainRuntime.GetStorage 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetStorage<TGrainState>(Grain) | |
GetStorage<TGrainState>(IGrainContext) |
取得所提供粒紋的細微性儲存體。 |
GetStorage<TGrainState>(Grain)
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>
所提供之粒紋的細微性儲存區。