IGrainRuntime.GetStorage Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
GetStorage<TGrainState>(Grain) | |
GetStorage<TGrainState>(IGrainContext) |
Obtient le stockage de grain pour le grain fourni. |
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)
Paramètres de type
- TGrainState
Paramètres
- grain
- Grain
Retours
IStorage<TGrainState>
S’applique à
GetStorage<TGrainState>(IGrainContext)
Obtient le stockage de grain pour le grain fourni.
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)
Paramètres de type
- TGrainState
Type d’état de grain.
Paramètres
- grainContext
- IGrainContext
Contexte de grain.
Retours
IStorage<TGrainState>
Stockage de grain pour le grain fourni.