Exemplo n.º 1
0
 public InternalWebStorableFileTransfer(IWebFilePermission permission,
                                        IHttpClientInvokerFactory factory,
                                        IOptionsMonitor <CoreExtensionOptions> optionsMonitor)
 {
     _permission     = permission;
     _factory        = factory;
     _optionsMonitor = optionsMonitor;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 构造一个 <see cref="AbstractHttpEndpointsInvoker"/>。
 /// </summary>
 /// <param name="logger">给定的 <see cref="ILogger"/>。</param>
 /// <param name="factory">给定的 <see cref="IHttpClientInvokerFactory"/>。</param>
 /// <param name="requestOptions">给定的 <see cref="HttpClientRequestOptions"/>。</param>
 /// <param name="algorithmOptions">给定的 <see cref="AlgorithmOptions"/>。</param>
 protected AbstractHttpEndpointsInvoker(ILogger logger, IHttpClientInvokerFactory factory,
                                        HttpClientRequestOptions requestOptions, AlgorithmOptions algorithmOptions)
 {
     _logger           = logger;
     _factory          = factory;
     _requestOptions   = requestOptions;
     _algorithmOptions = algorithmOptions;
 }
Exemplo n.º 3
0
 public InternalHttpEndpointsInvoker(ILoggerFactory loggerFactory,
                                     IHttpClientInvokerFactory factory, IOptionsMonitor <CoreExtensionOptions> options)
     : base(loggerFactory.CreateLogger <InternalHttpEndpointsInvoker>(), factory,
            options.CurrentValue.Request, options.CurrentValue.Algorithm)
 {
 }