共用方式為


FaultInjectionGrainStorage.ReadStateAsync 方法

定義

多載

ReadStateAsync(String, GrainReference, IGrainState)

如果提供例外狀況,則發生錯誤,否則會透過 呼叫裝飾的儲存體提供者。

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

如果提供例外狀況,則發生錯誤,否則會透過 呼叫裝飾的儲存體提供者。

ReadStateAsync(String, GrainReference, IGrainState)

來源:
FaultInjectionStorageProvider.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
override this.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

此粒紋的類型 [完整類別名稱]

grainReference
GrainReference

這個粒紋的粒紋參考物件。

grainState
IGrainState

要針對此粒紋填入的狀態資料物件。

傳回

在指定的粒紋上進行讀取作業的完成承諾。

實作

適用於

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

如果提供例外狀況,則發生錯誤,否則會透過 呼叫裝飾的儲存體提供者。

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

類型參數

T

參數

grainType
String
grainId
GrainId
grainState
IGrainState<T>

傳回

在指定的粒紋上進行讀取作業的完成承諾。

實作

適用於