Compartir a través de


IGrainRuntime.GetStorage Método

Definición

Sobrecargas

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

Obtiene el almacenamiento de grano para el grano proporcionado.

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)

Parámetros de tipo

TGrainState

Parámetros

grain
Grain

Devoluciones

IStorage<TGrainState>

Se aplica a

GetStorage<TGrainState>(IGrainContext)

Obtiene el almacenamiento de grano para el grano proporcionado.

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

Tipo de estado de grano.

Parámetros

grainContext
IGrainContext

Contexto específico.

Devoluciones

IStorage<TGrainState>

Almacenamiento de grano para el grano proporcionado.

Se aplica a