Table of Contents

Method CompareAndApplyDetailedAsync

Namespace
Kepware.Api.ClientHandler
Assembly
Kepware.Api.dll

CompareAndApplyDetailedAsync(Project, CancellationToken)

Compares the source project with the project from the API and applies changes while returning detailed success and failure information.

public Task<ProjectCompareAndApplyResult> CompareAndApplyDetailedAsync(Project sourceProject, CancellationToken cancellationToken = default)

Parameters

sourceProject Project

The source project to compare.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<ProjectCompareAndApplyResult>

A ProjectCompareAndApplyResult including counts and failed items.

CompareAndApplyDetailedAsync(Project, Project, CancellationToken)

Compares the source project with the project from the API and applies changes while returning detailed success and failure information.

public Task<ProjectCompareAndApplyResult> CompareAndApplyDetailedAsync(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<ProjectCompareAndApplyResult>

A ProjectCompareAndApplyResult including counts and failed items.