IStorageProvider.WriteStateAsync(String, GrainReference, IGrainState) 方法

定义

为此存储提供程序实例写入数据函数。

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

参数

grainType
String

此粒度的类型 [完全限定的类名]

grainReference
GrainReference

此粒度的粒度引用对象。

grainState
IGrainState

要为此粒度写入的状态数据对象。

返回

对指定粒度执行写入操作的完成承诺。

适用于