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; }
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)); }
public AnalyticsIndexManager(ILogger <AnalyticsIndexManager> logger, IAnalyticsClient client, IRedactor redactor, IServiceUriProvider serviceUriProvider, ICouchbaseHttpClientFactory httpClientFactory) { _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)); _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); }
public HttpStreamingConfigListener(IBucket bucket, ClusterOptions clusterOptions, ICouchbaseHttpClientFactory httpClientFactory, IConfigHandler configHandler, ILogger <HttpStreamingConfigListener> logger) { _bucket = bucket ?? throw new ArgumentNullException(nameof(bucket)); _streamingUriPath = "/pools/default/bs/" + _bucket.Name; _clusterOptions = clusterOptions ?? throw new ArgumentNullException(nameof(clusterOptions)); _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); _configHandler = configHandler ?? throw new ArgumentNullException(nameof(configHandler)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ViewClient(ICouchbaseHttpClientFactory httpClientFactory, ITypeSerializer serializer, ILogger <ViewClient> logger, IRedactor redactor, IRequestTracer tracer) : base(httpClientFactory) { _serializer = serializer ?? throw new ArgumentNullException(nameof(ITypeSerializer)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _redactor = redactor ?? throw new ArgumentNullException(nameof(redactor)); _tracer = tracer; }
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; }
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)); }
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(); }
protected HttpServiceBase(ICouchbaseHttpClientFactory httpClientFactory) { HttpClientFactory = httpClientFactory; }
/// <summary> /// The default constructor for this factory. /// </summary> /// <param name="couchbaseHttpClientFactory">The <see cref="ICouchbaseHttpClientFactory"/> instance for creating HTTP services.</param> public HttpClusterMapFactory(ICouchbaseHttpClientFactory couchbaseHttpClientFactory) { _couchbaseHttpClientFactory = couchbaseHttpClientFactory; }
public HttpClusterMap(ICouchbaseHttpClientFactory httpClientFactory, ClusterContext context) { _httpClientFactory = httpClientFactory; _context = context; }