FaultInjectionStorageProvider<TStorage>.WriteStateAsync 方法

定义

如果提供了异常,则出错,否则会调用修饰的存储提供程序。

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
override this.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

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

返回

指定粒度上的写入操作的完成承诺。

实现

适用于