Table of Contents

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 Project

The source project to compare.

cancellationToken CancellationToken

The 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 Project

The source project to compare.

projectFromApi Project

The project loaded from the API.

cancellationToken CancellationToken

The 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.