Method AddKepwareApiClients
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
IServiceCollectionThe 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.