/// <summary> /// Initializes a new instance of the <see cref="AnotherFakeApi"/> class /// using a Configuration object and client instance. /// </summary> /// <param name="client">The client interface for synchronous API access.</param> /// <param name="asyncClient">The client interface for asynchronous API access.</param> /// <param name="configuration">The configuration object.</param> /// <exception cref="ArgumentNullException"></exception> public AnotherFakeApi(Org.OpenAPITools.Client.ISynchronousClient client, Org.OpenAPITools.Client.IAsynchronousClient asyncClient, Org.OpenAPITools.Client.IReadableConfiguration configuration) { if (client == null) { throw new ArgumentNullException("client"); } if (asyncClient == null) { throw new ArgumentNullException("asyncClient"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } this.Client = client; this.AsynchronousClient = asyncClient; this.Configuration = configuration; this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; }
/// <summary> /// Initializes a new instance of the <see cref="SafetyMonitor"/> class /// using a Configuration object and client instance. /// </summary> /// <param name="client">The client interface for synchronous API access.</param> /// <param name="asyncClient">The client interface for asynchronous API access.</param> /// <param name="configuration">The configuration object.</param> public SafetyMonitor(Org.OpenAPITools.Client.ISynchronousClient client, Org.OpenAPITools.Client.IAsynchronousClient asyncClient, Org.OpenAPITools.Client.IReadableConfiguration configuration) : base("safetymonitor", client, asyncClient, configuration) { if (client == null) { throw new ArgumentNullException("client"); } if (asyncClient == null) { throw new ArgumentNullException("asyncClient"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } this.Client = client; this.AsynchronousClient = asyncClient; this.Configuration = configuration; this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; }