Compartilhar via


IGrainRuntime.GetStorage Método

Definição

Sobrecargas

GetStorage<TGrainState>(Grain)
GetStorage<TGrainState>(IGrainContext)

Obtém o armazenamento de granularidade para a granularidade fornecida.

GetStorage<TGrainState>(Grain)

Origem:
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)

Parâmetros de tipo

TGrainState

Parâmetros

grain
Grain

Retornos

IStorage<TGrainState>

Aplica-se a

GetStorage<TGrainState>(IGrainContext)

Obtém o armazenamento de granularidade para a granularidade fornecida.

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)

Parâmetros de tipo

TGrainState

O tipo de estado de granularidade.

Parâmetros

grainContext
IGrainContext

O contexto de granularidade.

Retornos

IStorage<TGrainState>

O armazenamento de granularidade para a granularidade fornecida.

Aplica-se a