public void TestSetup()
        {
            log = new ConsoleLog();

            settings = new NativeTransportSettings();
            provider = new HttpClientProvider(settings, log);
        }
Esempio n. 2
0
        public ITransport CreateTransport(TestTransportSettings settings, ILog log)
        {
            var transportSettings = new NativeTransportSettings
            {
                Proxy = settings.Proxy,
                MaxResponseBodySize       = settings.MaxResponseBodySize,
                MaxConnectionsPerEndpoint = settings.MaxConnectionsPerEndpoint,
                UseResponseStreaming      = settings.UseResponseStreaming,
                AllowAutoRedirect         = settings.AllowAutoRedirect,
                BufferFactory             = settings.BufferFactory
            };

            return(new NativeTransport(transportSettings, log));
        }