Table of Contents

Method GetRestClientAgentAsync

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

GetRestClientAgentAsync(string, CancellationToken)

Gets a REST Client agent with the specified name.

public Task<RestClientAgent?> GetRestClientAgentAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string

The name of the agent.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<RestClientAgent>

The loaded RestClientAgent or null if not found.

Exceptions

ArgumentException

Thrown when the name is null or empty.