Beispiel #1
0
 public HttpRequestCreatorTests()
 {
     _requestCreator = new HttpRequestCreator();
     _isQos          = true;
     _qoSProvider    = new NoQoSProvider();
     _requestMessage = new HttpRequestMessage();
 }
Beispiel #2
0
        public HttpRequestCreatorTests()
        {
            _requestCreator     = new HttpRequestCreator();
            _isQos              = true;
            _qoSProvider        = new NoQoSProvider();
            _useCookieContainer = false;
            _allowAutoRedirect  = false;

            _requestMessage = new HttpRequestMessage();
        }
 public HttpRequestBuilderMiddleware(RequestDelegate next,
                                     IOcelotLoggerFactory loggerFactory,
                                     IRequestScopedDataRepository requestScopedDataRepository,
                                     IRequestCreator requestCreator)
     : base(requestScopedDataRepository)
 {
     _next           = next;
     _requestCreator = requestCreator;
     _logger         = loggerFactory.CreateLogger <HttpRequestBuilderMiddleware>();
 }
 public ProxyMiddleware(
     RequestDelegate next,
     IRequestCreator requestCreator,
     IRequestSender sender,
     IResponseSender responseSender,
     IRouteResolver routeResolver,
     IExpressionEvaluator evaluator,
     ILogger <ProxyMiddleware> logger)
 {
     this.next           = CheckValue(next, nameof(next));
     this.requestCreator = CheckValue(requestCreator, nameof(requestCreator));
     this.sender         = CheckValue(sender, nameof(sender));
     this.responseSender = CheckValue(responseSender, nameof(responseSender));
     this.routeResolver  = CheckValue(routeResolver, nameof(routeResolver));
     this.evaluator      = CheckValue(evaluator, nameof(evaluator));
     this.logger         = CheckValue(logger, nameof(logger));
 }
Beispiel #5
0
        void Awake()
        {
            requestCreator = new RequestCreator(ApiAddress, ApiKey, this);

            InitListServer();
        }
Beispiel #6
0
 public RequestBuilderTests()
 {
     _content        = new StringContent(string.Empty);
     _requestCreator = new HttpRequestCreator();
 }
 public ListServerServerApi(ICoroutineRunner runner, IRequestCreator requestCreator) : base(runner, requestCreator) {
 }
Beispiel #8
0
 protected BaseApi(ICoroutineRunner runner, IRequestCreator requestCreator)
 {
     this.runner         = runner ?? throw new ArgumentNullException(nameof(runner));
     this.requestCreator = requestCreator ?? throw new ArgumentNullException(nameof(requestCreator));
 }
Beispiel #9
0
 protected ListServerBaseApi(ICoroutineRunner runner, IRequestCreator requestCreator) : base(runner, requestCreator)
 {
 }
Beispiel #10
0
 public GameListProcessor(IHttpClientFactory clientFactory, IRequestCreator requestCreator)
 {
     _clientFactory  = clientFactory;
     _requestCreator = requestCreator;
 }
 public ListServerServerApi(ICoroutineRunner pRunner, IRequestCreator pRequestCreator) : base(pRunner, pRequestCreator)
 {
 }
Beispiel #12
0
 public RequestFactory(IRequestCreator creator)
 {
     _creator = creator;
     // super(conman, param);
 }