IGrainStorage.WriteStateAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WriteStateAsync(String, GrainReference, IGrainState) |
寫入此儲存體實例的資料函式。 |
WriteStateAsync<T>(String, GrainId, IGrainState<T>) |
寫入此儲存體實例的資料函式。 |
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
要針對這個細微性寫入的狀態資料物件。
傳回
指定細微性上寫入作業的完成承諾。
適用於
WriteStateAsync<T>(String, GrainId, IGrainState<T>)
寫入此儲存體實例的資料函式。
public System.Threading.Tasks.Task WriteStateAsync<T> (string stateName, Orleans.Runtime.GrainId grainId, Orleans.IGrainState<T> grainState);
abstract member WriteStateAsync : string * Orleans.Runtime.GrainId * Orleans.IGrainState<'T> -> System.Threading.Tasks.Task
Public Function WriteStateAsync(Of T) (stateName As String, grainId As GrainId, grainState As IGrainState(Of T)) As Task
類型參數
- T
細微性狀態類型。
參數
- stateName
- String
此粒紋的狀態名稱
- grainId
- GrainId
粒紋識別碼
- grainState
- IGrainState<T>
要針對這個細微性寫入的狀態資料物件。
傳回
指定細微性上寫入作業的完成承諾。