コード例 #1
0
        public ConfigurationClient(string connectionString, ConfigurationClientOptions options)
        {
            if (connectionString == null)
            {
                throw new ArgumentNullException(nameof(connectionString));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            ParseConnectionString(connectionString, out _baseUri, out var credential, out var secret);

            _pipeline = HttpPipeline.Build(options,
                                           options.ResponseClassifier,
                                           options.RetryPolicy,
                                           ClientRequestIdPolicy.Singleton,
                                           new AuthenticationPolicy(credential, secret),
                                           options.LoggingPolicy,
                                           BufferResponsePolicy.Singleton);
        }