Method CompareAndApply
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
CompareAndApply(Project, CancellationToken)
Compares the source project with the project from the API and applies the changes to the API.
public Task<(int inserts, int updates, int deletes)> CompareAndApply(Project sourceProject, CancellationToken cancellationToken = default)
Parameters
sourceProject
ProjectThe source project to compare.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<(int inserts, int updates, int deletes)>
A task that represents the asynchronous operation. The task result contains a tuple with the counts of inserts, updates, and deletes.
CompareAndApply(Project, Project, CancellationToken)
Compares the source project with the project from the API and applies the changes to the API.
public Task<(int inserts, int updates, int deletes)> CompareAndApply(Project sourceProject, Project projectFromApi, CancellationToken cancellationToken = default)
Parameters
sourceProject
ProjectThe source project to compare.
projectFromApi
ProjectThe project loaded from the API.
cancellationToken
CancellationTokenThe cancellation token.