Edit

Share via


GrainStorageHelpers.GetGrainStorage(Type, IServiceProvider) Method

Definition

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>.

Applies to