예제 #1
0
 public OnPremisesConnection(ILogger logger, IBackendCommunication backendCommunication, IConfiguration configuration, ILifetimeScope lifetimeScope)
 {
     _logger = logger;
     _backendCommunication = backendCommunication ?? throw new ArgumentNullException(nameof(backendCommunication));
     _configuration        = configuration ?? throw new ArgumentNullException(nameof(configuration));
     _lifetimeScope        = lifetimeScope ?? throw new ArgumentNullException(nameof(lifetimeScope));
 }
예제 #2
0
        public OnPremiseConnectionHeartbeater(ILogger logger, IConfiguration configuration, IBackendCommunication backendCommunication)
        {
            _logger               = logger;
            _configuration        = configuration ?? throw new ArgumentNullException(nameof(configuration));
            _backendCommunication = backendCommunication ?? throw new ArgumentNullException(nameof(backendCommunication));

            _heartbeatInterval = new TimeSpan(_configuration.ActiveConnectionTimeout.Ticks / 4);
            _cts = new CancellationTokenSource();
        }
예제 #3
0
 public ClientController(IBackendCommunication backendCommunication, ILogger logger, ILinkRepository linkRepository, IRequestLogger requestLogger,
                         IHttpResponseMessageBuilder httpResponseMessageBuilder, IOnPremiseRequestBuilder onPremiseRequestBuilder, IPathSplitter pathSplitter,
                         ITraceManager traceManager)
 {
     _backendCommunication = backendCommunication;
     _logger                     = logger;
     _linkRepository             = linkRepository;
     _requestLogger              = requestLogger;
     _httpResponseMessageBuilder = httpResponseMessageBuilder;
     _onPremiseRequestBuilder    = onPremiseRequestBuilder;
     _pathSplitter               = pathSplitter;
     _traceManager               = traceManager;
 }
예제 #4
0
 public ClientController(IBackendCommunication backendCommunication, ILogger logger, ILinkRepository linkRepository, IRequestLogger requestLogger,
                         IOnPremiseRequestBuilder onPremiseRequestBuilder, IPathSplitter pathSplitter,
                         ITraceManager traceManager, IInterceptorManager interceptorManager, IPostDataTemporaryStore postDataTemporaryStore)
 {
     _backendCommunication = backendCommunication ?? throw new ArgumentNullException(nameof(backendCommunication));
     _logger                  = logger;
     _linkRepository          = linkRepository ?? throw new ArgumentNullException(nameof(linkRepository));
     _requestLogger           = requestLogger ?? throw new ArgumentNullException(nameof(requestLogger));
     _onPremiseRequestBuilder = onPremiseRequestBuilder ?? throw new ArgumentNullException(nameof(onPremiseRequestBuilder));
     _pathSplitter            = pathSplitter ?? throw new ArgumentNullException(nameof(pathSplitter));
     _traceManager            = traceManager ?? throw new ArgumentNullException(nameof(traceManager));
     _interceptorManager      = interceptorManager ?? throw new ArgumentNullException(nameof(interceptorManager));
     _postDataTemporaryStore  = postDataTemporaryStore ?? throw new ArgumentNullException(nameof(postDataTemporaryStore));
 }
예제 #5
0
 public ResponseController(ILifetimeScope scope, ILogger logger)
 {
     _logger = logger;
     _backendCommunication = scope.Resolve <IBackendCommunication>();
 }
예제 #6
0
 public ResponseController(IBackendCommunication backendCommunication, ILogger logger, IPostDataTemporaryStore postDataTemporaryStore)
 {
     _logger = logger;
     _backendCommunication   = backendCommunication ?? throw new ArgumentNullException(nameof(backendCommunication));
     _postDataTemporaryStore = postDataTemporaryStore ?? throw new ArgumentNullException(nameof(postDataTemporaryStore));
 }
예제 #7
0
 public RequestController(ILogger logger, IPostDataTemporaryStore temporaryStore, IBackendCommunication backendCommunication)
 {
     _logger               = logger;
     _temporaryStore       = temporaryStore ?? throw new ArgumentNullException(nameof(temporaryStore));
     _backendCommunication = backendCommunication ?? throw new ArgumentNullException(nameof(backendCommunication));
 }
예제 #8
0
 public OnPremisesConnection(ILogger logger, IBackendCommunication backendCommunication)
 {
     _logger = logger;
     _backendCommunication = backendCommunication ?? throw new ArgumentNullException(nameof(backendCommunication));
 }
예제 #9
0
 public LinkController(ILinkRepository linkRepository, IBackendCommunication backendCommunication, IRequestLogger requestLogger)
 {
     _linkRepository       = linkRepository;
     _backendCommunication = backendCommunication;
     _requestLogger        = requestLogger;
 }
예제 #10
0
 public OnPremisesConnection(IBackendCommunication backendCommunication, IPostDataTemporaryStore temporaryStore, ILogger logger)
 {
     _backendCommunication = backendCommunication;
     _temporaryStore       = temporaryStore;
     _logger = logger;
 }