Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TrackableJobsApi"/> class
        /// using Configuration object
        /// </summary>
        /// <param name="configuration">An instance of Configuration</param>
        /// <returns></returns>
        public TrackableJobsApi(ParasutClient.Client.Configuration configuration = null)
        {
            if (configuration == null) // use the default one in Configuration
                this.Configuration = ParasutClient.Client.Configuration.Default;
            else
                this.Configuration = configuration;

            ExceptionFactory = ParasutClient.Client.Configuration.DefaultExceptionFactory;
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ApiHomeApi"/> class
        /// using Configuration object
        /// </summary>
        /// <param name="configuration">An instance of Configuration</param>
        /// <returns></returns>
        public ApiHomeApi(ParasutClient.Client.Configuration configuration = null)
        {
            if (configuration == null) // use the default one in Configuration
            {
                this.Configuration = ParasutClient.Client.Configuration.Default;
            }
            else
            {
                this.Configuration = configuration;
            }

            ExceptionFactory = ParasutClient.Client.Configuration.DefaultExceptionFactory;
        }