Поделиться через


IGrainRuntime.GetStorage Метод

Определение

Перегрузки

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

Возвращает хранилище для предоставленного интервала.

GetStorage<TGrainState>(Grain)

Исходный код:
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)

Параметры типа

TGrainState

Параметры

grain
Grain

Возвращаемое значение

IStorage<TGrainState>

Применяется к

GetStorage<TGrainState>(IGrainContext)

Возвращает хранилище для предоставленного интервала.

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)

Параметры типа

TGrainState

Тип состояния интервала.

Параметры

grainContext
IGrainContext

Контекст grain.

Возвращаемое значение

IStorage<TGrainState>

Хранилище для предоставленного интервала.

Применяется к