IGrainRuntime.GetStorage 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetStorage<TGrainState>(Grain) | |
GetStorage<TGrainState>(IGrainContext) |
获取所提供粒度的粒度存储。 |
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)
类型参数
- 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
grain 上下文。
返回
IStorage<TGrainState>
提供的 grain 的 grain 存储。