Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Submit

Syntax

Microsoft.Restier.Core.Submit.IChangeSetInitializer

Summary

Represents a service that can initialize a change set.

Methods

InitializeAsync Abstract

Asynchronously initialize a change set for submission.

Syntax

System.Threading.Tasks.Task InitializeAsync(Microsoft.Restier.Core.Submit.SubmitContext context, System.Threading.CancellationToken cancellationToken)

Parameters

NameTypeDescription
contextMicrosoft.Restier.Core.Submit.SubmitContextThe submit context.
cancellationTokenSystem.Threading.CancellationTokenA cancellation token.

Returns

Type: System.Threading.Tasks.Task A task that represents the asynchronous operation.

Remarks

Preparing a change set involves creating new entity objects for new data, loading entities that are pending update or delete from to get current server values, and using a data provider mechanism to locally apply the supplied changes to the loaded entities.