次の方法で共有


ICustomStorageInterface<TState,TDelta>.ApplyUpdatesToStorage メソッド

定義

指定されたデルタ配列をストレージに適用し、ストレージ内のバージョンが予想されるバージョンと一致する場合は true を返します。 それ以外の場合、 は何も実行せず、false を返します。 成功した場合は、ストレージのバージョンをデルタの数だけ増やす必要があります。

public System.Threading.Tasks.Task<bool> ApplyUpdatesToStorage (System.Collections.Generic.IReadOnlyList<TDelta> updates, int expectedversion);
public System.Threading.Tasks.Task<bool> ApplyUpdatesToStorage (System.Collections.Generic.IReadOnlyList<TDelta> updates, int expectedVersion);
abstract member ApplyUpdatesToStorage : System.Collections.Generic.IReadOnlyList<'Delta> * int -> System.Threading.Tasks.Task<bool>
abstract member ApplyUpdatesToStorage : System.Collections.Generic.IReadOnlyList<'Delta> * int -> System.Threading.Tasks.Task<bool>
Public Function ApplyUpdatesToStorage (updates As IReadOnlyList(Of TDelta), expectedversion As Integer) As Task(Of Boolean)
Public Function ApplyUpdatesToStorage (updates As IReadOnlyList(Of TDelta), expectedVersion As Integer) As Task(Of Boolean)

パラメーター

updates
IReadOnlyList<TDelta>
expectedversionexpectedVersion
Int32

戻り値

デルタが適用された場合は true、それ以外の場合は false

適用対象