IGrainStorage.ReadStateAsync 方法

定义

重载

ReadStateAsync(String, GrainReference, IGrainState)

读取此存储实例的数据函数。

ReadStateAsync<T>(String, GrainId, IGrainState<T>)

读取此存储实例的数据函数。

ReadStateAsync(String, GrainReference, IGrainState)

Source:
IGrainStorage.cs

读取此存储实例的数据函数。

public System.Threading.Tasks.Task ReadStateAsync (string grainType, Orleans.Runtime.GrainReference grainReference, Orleans.IGrainState grainState);
abstract member ReadStateAsync : string * Orleans.Runtime.GrainReference * Orleans.IGrainState -> System.Threading.Tasks.Task
Public Function ReadStateAsync (grainType As String, grainReference As GrainReference, grainState As IGrainState) As Task

参数

grainType
String

此 grain 的类型 [完全限定的类名]

grainReference
GrainReference

此粒度的 Grain 引用对象。

grainState
IGrainState

要为此粒度填充的状态数据对象。

返回

对指定粒度执行读取操作的完成承诺。

适用于

ReadStateAsync<T>(String, GrainId, IGrainState<T>)

读取此存储实例的数据函数。

public System.Threading.Tasks.Task ReadStateAsync<T> (string stateName, Orleans.Runtime.GrainId grainId, Orleans.IGrainState<T> grainState);
abstract member ReadStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
Public Function ReadStateAsync(Of T) (stateName As String, grainId As GrainId, grainState As IGrainState(Of T)) As Task

类型参数

T

grain 状态类型。

参数

stateName
String

此粒度的状态的名称

grainId
GrainId

Grain ID

grainState
IGrainState<T>

要为此粒度填充的状态数据对象。

返回

对指定粒度执行读取操作的完成承诺。

适用于