GrainStorageHelpers.GetGrainStorage(Type, IServiceProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the IGrainStorage associated with the specified grain type, which must derive from 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
Parameters
- grainType
- Type
The grain type, which must derive from Grain<TGrainState>.
- services
- IServiceProvider
The service provider.
Returns
The IGrainStorage associated with the specified grain type, which must derive from Grain<TGrainState>.