다음을 통해 공유


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입니다.

적용 대상