public BucketManager(IServiceUriProvider serviceUriProvider, CouchbaseHttpClient client, ILogger <BucketManager> logger, IRedactor redactor)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _client             = client ?? throw new ArgumentNullException(nameof(client));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _redactor           = redactor ?? throw new ArgumentNullException(nameof(redactor));
 }
Esempio n. 2
0
 public SearchIndexManager(IServiceUriProvider serviceUriProvider, CouchbaseHttpClient httpClient,
                           ILogger <SearchIndexManager> logger)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _client             = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 3
0
 public BucketManager(IServiceUriProvider serviceUriProvider, ICouchbaseHttpClientFactory httpClientFactory,
                      ILogger <BucketManager> logger, IRedactor redactor)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _httpClientFactory  = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _redactor           = redactor ?? throw new ArgumentNullException(nameof(redactor));
 }
 public EventingFunctionService(ICouchbaseHttpClientFactory httpClientFactory, IServiceUriProvider serviceUriProvider,
                                ILogger <EventingFunctionService> logger, IRedactor redactor)
     : base(httpClientFactory)
 {
     _serviceUriProvider = serviceUriProvider;
     _logger             = logger;
     _redactor           = redactor;
 }
Esempio n. 5
0
 public CollectionManager(string bucketName, IServiceUriProvider serviceUriProvider, CouchbaseHttpClient client,
                          ILogger <CollectionManager> logger)
 {
     _bucketName         = bucketName ?? throw new ArgumentNullException(nameof(bucketName));
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _client             = client ?? throw new ArgumentNullException(nameof(client));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public ViewIndexManager(string bucketName, IServiceUriProvider serviceUriProvider, ICouchbaseHttpClientFactory httpClientFactory,
                         ILogger <ViewIndexManager> logger, IRedactor redactor)
 {
     _bucketName         = bucketName ?? throw new ArgumentNullException(nameof(bucketName));
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _httpClientFactory  = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _redactor           = redactor ?? throw new ArgumentNullException(nameof(redactor));
 }
Esempio n. 7
0
 public AnalyticsIndexManager(ILogger <AnalyticsIndexManager> logger, IQueryClient client, IRedactor redactor,
                              IServiceUriProvider serviceUriProvider, CouchbaseHttpClient couchbaseHttpClient)
 {
     _logger              = logger ?? throw new ArgumentNullException(nameof(logger));
     _client              = client ?? throw new ArgumentNullException(nameof(client));
     _redactor            = redactor ?? throw new ArgumentNullException(nameof(redactor));
     _serviceUriProvider  = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _couchbaseHttpClient = couchbaseHttpClient ?? throw new ArgumentNullException(nameof(couchbaseHttpClient));
 }
Esempio n. 8
0
 public AnalyticsClient(
     CouchbaseHttpClient client,
     IServiceUriProvider serviceUriProvider,
     ITypeSerializer typeSerializer,
     ILogger <AnalyticsClient> logger)
     : base(client)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _typeSerializer     = typeSerializer ?? throw new ArgumentNullException(nameof(typeSerializer));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 9
0
 public QueryClient(
     CouchbaseHttpClient httpClient,
     IServiceUriProvider serviceUriProvider,
     ITypeSerializer serializer,
     ILogger <QueryClient> logger)
     : base(httpClient)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _serializer         = serializer ?? throw new ArgumentNullException(nameof(serializer));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 10
0
        public SearchClient(
            CouchbaseHttpClient httpClient,
            IServiceUriProvider serviceUriProvider,
            ILogger <SearchClient> logger)
            : base(httpClient)
        {
            _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
            _logger             = logger ?? throw new ArgumentNullException(nameof(logger));

            // Always use the SearchDataMapper
            _dataMapper = new SearchDataMapper();
        }
Esempio n. 11
0
 public QueryClient(
     ICouchbaseHttpClientFactory clientFactory,
     IServiceUriProvider serviceUriProvider,
     ITypeSerializer serializer,
     ILogger <QueryClient> logger,
     IRequestTracer tracer)
     : base(clientFactory)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _serializer         = serializer ?? throw new ArgumentNullException(nameof(serializer));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _tracer             = tracer ?? throw new ArgumentNullException(nameof(tracer));
 }
Esempio n. 12
0
 public AnalyticsClient(
     ICouchbaseHttpClientFactory httpClientFactory,
     IServiceUriProvider serviceUriProvider,
     ITypeSerializer typeSerializer,
     ILogger <AnalyticsClient> logger,
     IRequestTracer tracer)
     : base(httpClientFactory)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _typeSerializer     = typeSerializer ?? throw new ArgumentNullException(nameof(typeSerializer));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _tracer             = tracer;
 }
Esempio n. 13
0
        public SearchClient(
            ICouchbaseHttpClientFactory httpClientFactory,
            IServiceUriProvider serviceUriProvider,
            ILogger <SearchClient> logger,
            IRequestTracer tracer)
            : base(httpClientFactory)
        {
            _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
            _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
            _tracer             = tracer;

            // Always use the SearchDataMapper
            _dataMapper = new SearchDataMapper();
        }
 public QueryClient(
     CouchbaseHttpClient httpClient,
     IServiceUriProvider serviceUriProvider,
     ITypeSerializer serializer,
     ILogger <QueryClient> logger,
     IRequestTracer tracer)
     : base(httpClient)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _serializer         = serializer ?? throw new ArgumentNullException(nameof(serializer));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _tracer             = tracer ?? throw new ArgumentNullException(nameof(tracer));
     HttpClient.Timeout  = Timeout.InfiniteTimeSpan;
 }
Esempio n. 15
0
 internal QueryClient(CouchbaseHttpClient httpClient, IServiceUriProvider serviceUriProvider, ITypeSerializer serializer)
     : base(httpClient)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _serializer         = serializer ?? throw new ArgumentNullException(nameof(serializer));
 }
Esempio n. 16
0
 public SearchClient(CouchbaseHttpClient httpClient, IServiceUriProvider serviceUriProvider, IDataMapper dataMapper)
     : base(httpClient)
 {
     _serviceUriProvider = serviceUriProvider ?? throw new ArgumentNullException(nameof(serviceUriProvider));
     _dataMapper         = dataMapper ?? throw new ArgumentNullException(nameof(dataMapper));
 }
Esempio n. 17
0
 public WebApiClient(IServiceUriProvider serverUriProvider)
 {
     _serverBaseUri = new Uri(serverUriProvider.BaseUri);
 }