/// <summary> /// Creates a new PVOutputClient. /// </summary> /// <param name="options">Options to use for the client, containing the ApiKey and Id of the owned system.</param> public PVOutputClient(PVOutputClientOptions options) { Guard.Argument(options).NotNull(); ApiKey = options.ApiKey; OwnedSystemId = options.OwnedSystemId; CreateServices(); }
/// <summary> /// Creates a new PVOutputClient, with a ILogger attached. /// </summary> /// <param name="options">Options to use for the client, containing the ApiKey and Id of the owned system.</param> /// <param name="logger">The ILogger implementation, used for logging purposes.</param> public PVOutputClient(PVOutputClientOptions options, ILogger <PVOutputClient> logger) : this(options) { Logger = logger; }