Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DefaultApi"/> 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 DefaultApi(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;
        }