public ClientRequestSender(
     IClientQueuedRequests clientQueuedRequests,
     IClientRequestMetaDataFactory clientRequestMetaDataFactory,
     ILogger <ClientRequestSender> logger)
 {
     _clientQueuedRequests         = clientQueuedRequests ?? throw new ArgumentNullException(nameof(clientQueuedRequests));
     _clientRequestMetaDataFactory = clientRequestMetaDataFactory ?? throw new ArgumentNullException(nameof(clientRequestMetaDataFactory));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemple #2
0
 public GrpcService(
     IClientQueuedRequests clientQueuedRequests,
     IClientPendingRequests clientPendingRequests,
     IClientQueuedResponses clientQueuedResponses,
     ILogger <GrpcService> logger)
 {
     _clientQueuedRequests  = clientQueuedRequests ?? throw new ArgumentNullException(nameof(clientQueuedRequests));
     _clientPendingRequests = clientPendingRequests ?? throw new ArgumentNullException(nameof(clientPendingRequests));
     _clientQueuedResponses = clientQueuedResponses ?? throw new ArgumentNullException(nameof(clientQueuedResponses));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public ClientServiceConnector(GrpcClientFactory grpcClientFactory,
                               IClientQueuedRequests clientQueuedRequests,
                               IClientQueuedResponses clientQueuedResponses,
                               ILogger <ClientServiceConnector> logger)
 {
     _grpcClientFactory     = grpcClientFactory ?? throw new ArgumentNullException(nameof(grpcClientFactory));
     _clientQueuedRequests  = clientQueuedRequests ?? throw new ArgumentNullException(nameof(clientQueuedRequests));
     _clientQueuedResponses = clientQueuedResponses ?? throw new ArgumentNullException(nameof(clientQueuedResponses));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _cancellationTokenSource = null;
 }
Exemple #4
0
 public ClientRequestsProcessor(IClientQueuedRequests clientQueuedRequests,
                                IClientQueuedResponses clientQueuedResponses,
                                IClientRequestProcessor clientRequestProcessor,
                                IClientResponseMetaDataFactory clientResponseMetaDataFactory,
                                ILogger <ClientRequestsProcessor> logger)
 {
     _clientQueuedRequests          = clientQueuedRequests ?? throw new ArgumentNullException(nameof(clientQueuedRequests));
     _clientQueuedResponses         = clientQueuedResponses ?? throw new ArgumentNullException(nameof(clientQueuedResponses));
     _clientRequestProcessor        = clientRequestProcessor ?? throw new ArgumentNullException(nameof(clientRequestProcessor));
     _clientResponseMetaDataFactory = clientResponseMetaDataFactory ?? throw new ArgumentNullException(nameof(clientResponseMetaDataFactory));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _cancellationTokenSource = null;
 }