public HttpConnectionWebReaderManager(IHttpConnectionFactory httpConnectionFactory, IHttpConnectionRequestFactory httpConnectionRequestFactory, IWebReaderManagerParameters webReaderManagerParameters, IContentTypeDetector contentTypeDetector, IRetryManager retryManager)
 {
     if (null == httpConnectionFactory)
     {
         throw new ArgumentNullException("httpConnectionFactory");
     }
     if (null == httpConnectionRequestFactory)
     {
         throw new ArgumentNullException("httpConnectionRequestFactory");
     }
     if (null == webReaderManagerParameters)
     {
         throw new ArgumentNullException("webReaderManagerParameters");
     }
     if (null == contentTypeDetector)
     {
         throw new ArgumentNullException("contentTypeDetector");
     }
     if (null == retryManager)
     {
         throw new ArgumentNullException("retryManager");
     }
     this._httpConnectionFactory        = httpConnectionFactory;
     this._httpConnectionRequestFactory = httpConnectionRequestFactory;
     this._webReaderManagerParameters   = webReaderManagerParameters;
     this._contentTypeDetector          = contentTypeDetector;
     this._retryManager = retryManager;
 }
        public QueueItemService([FromServices] IHttpConnectionFactory <QueueItem> httpClientConnection,
                                IConfiguration config,
                                [FromServices] CustomMapper customMapper)
        {
            _httpClient       = httpClientConnection;
            _config           = config;
            _queueItemGroupId = _config.GetValue <string>("QueueItemGroupId");

            _customMapper = customMapper;
        }
示例#3
0
        public CSUCallbackService([FromServices] IHttpConnectionFactory <QItemHolder> httpClientConnectionQItemHolder,
                                  [FromServices] IHttpConnectionFactory <CSU_Callback> httpClientConnectionCsuCallback,
                                  [FromServices] IHttpConnectionFactory <QueueItem> httpClientConnectionQueueItem,
                                  IConfiguration config,
                                  [FromServices] CustomMapper customMapper)
        {
            _config           = config;
            _queueItemGroupId = _config.GetValue <string>("QueueItemGroupId");

            _httpClientConnectionQItemHolder = httpClientConnectionQItemHolder;
            _httpClientConnectionCsuCallback = httpClientConnectionCsuCallback;
            _httpClientConnectionQueueItem   = httpClientConnectionQueueItem;

            _customMapper = customMapper;
        }
        public HttpConnectionWebReaderManager(IHttpConnectionFactory httpConnectionFactory, IHttpConnectionRequestFactory httpConnectionRequestFactory, IWebReaderManagerParameters webReaderManagerParameters, IContentTypeDetector contentTypeDetector, IRetryManager retryManager)
        {
            if (null == httpConnectionFactory)
                throw new ArgumentNullException(nameof(httpConnectionFactory));
            if (null == httpConnectionRequestFactory)
                throw new ArgumentNullException(nameof(httpConnectionRequestFactory));
            if (null == webReaderManagerParameters)
                throw new ArgumentNullException(nameof(webReaderManagerParameters));
            if (null == contentTypeDetector)
                throw new ArgumentNullException(nameof(contentTypeDetector));
            if (null == retryManager)
                throw new ArgumentNullException(nameof(retryManager));

            _httpConnectionFactory = httpConnectionFactory;
            _httpConnectionRequestFactory = httpConnectionRequestFactory;
            _webReaderManagerParameters = webReaderManagerParameters;
            _contentTypeDetector = contentTypeDetector;
            _retryManager = retryManager;
        }
示例#5
0
 public QueueGroupService([FromServices] IHttpConnectionFactory <QueueGroup> httpClientConnection)
 {
     _httpClient = httpClientConnection;
 }
示例#6
0
 public QueueResultService([FromServices] IHttpConnectionFactory <QResult> httpClientConnection)
 {
     _httpClient = httpClientConnection;
 }
 public QueueService([FromServices] IHttpConnectionFactory <QueueModel> httpClientConnection)
 {
     _httpClient = httpClientConnection;
 }