Edit

Share via


ICustomStorageInterface<TState,TDelta>.ApplyUpdatesToStorage Method

Definition

Applies the given array of deltas to storage, and returns true, if the version in storage matches the expected version. Otherwise, does nothing and returns false. If successful, the version of storage must be increased by the number of deltas.

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)

Parameters

updates
IReadOnlyList<TDelta>
expectedversionexpectedVersion
Int32

Returns

true if the deltas were applied, false otherwise

Applies to