示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="KeywordApi"/> class
        /// using Configuration object
        /// </summary>
        /// <param name="configuration">An instance of Configuration</param>
        /// <returns></returns>
        public KeywordApi(SegApiClient.Client.Configuration configuration = null)
        {
            if (configuration == null) // use the default one in Configuration
            {
                this.Configuration = SegApiClient.Client.Configuration.Default;
            }
            else
            {
                this.Configuration = configuration;
            }

            ExceptionFactory = SegApiClient.Client.Configuration.DefaultExceptionFactory;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CheckTypeApi"/> class
        /// using Configuration object
        /// </summary>
        /// <param name="configuration">An instance of Configuration</param>
        /// <returns></returns>
        public CheckTypeApi(IApiCaller refitWrapper, SegApiClient.Client.Configuration configuration = null)
        {
            if (configuration == null) // use the default one in Configuration
            {
                this.Configuration = SegApiClient.Client.Configuration.Default;
            }
            else
            {
                this.Configuration = configuration;
            }

            ExceptionFactory = SegApiClient.Client.Configuration.DefaultExceptionFactory;

            _refitWrapper = refitWrapper;
        }