Table of Contents

Method AddKepwareApiClients

Namespace
Kepware.Api
Assembly
Kepware.Api.dll

AddKepwareApiClients(IServiceCollection, IEnumerable<KeyValuePair<string, KepwareApiClientOptions>>)

Adds multiple Kepware Configuration API clients to the service collection.

public static IServiceCollection AddKepwareApiClients(this IServiceCollection services, IEnumerable<KeyValuePair<string, KepwareApiClientOptions>> options)

Parameters

services IServiceCollection

The service collection to add the clients to.

options IEnumerable<KeyValuePair<string, KepwareApiClientOptions>>

A collection of key-value pairs where the key is the client name and the value is the client options.

Returns

IServiceCollection

The updated service collection.

Exceptions

ArgumentNullException

Thrown when the services parameter is null.