GrainStorageHelpers.GetGrainStorage(Type, IServiceProvider) 方法

定义

IGrainStorage获取与指定的 grain 类型关联的 ,该类型必须派生自 Grain<TGrainState>

public static Orleans.Storage.IGrainStorage GetGrainStorage (Type grainType, IServiceProvider services);
static member GetGrainStorage : Type * IServiceProvider -> Orleans.Storage.IGrainStorage
Public Shared Function GetGrainStorage (grainType As Type, services As IServiceProvider) As IGrainStorage

参数

grainType
Type

grain 类型,必须派生自 Grain<TGrainState>

services
IServiceProvider

服务提供程序。

返回

IGrainStorage与指定的 grain 类型关联的 ,该类型必须派生自 Grain<TGrainState>

适用于