public Task RunExperimental(TestContext ctx, CancellationToken cancellationToken, HttpServerProvider provider, HttpRequestTestType type, HttpRequestTestRunner runner) { return(runner.Run(ctx, cancellationToken)); }
public Task MartinTest(TestContext ctx, CancellationToken cancellationToken, HttpServerProvider provider, HttpClientTestType type, HttpClientTestRunner runner) { return(runner.Run(ctx, cancellationToken)); }
public Task RunNewWebStack(TestContext ctx, CancellationToken cancellationToken, HttpServerProvider provider, HttpInstrumentationTestType type, HttpInstrumentationTestRunner runner) { return(runner.Run(ctx, cancellationToken)); }
public Task Run(TestContext ctx, CancellationToken cancellationToken, HttpServerProvider provider, HttpListenerTestType type, HttpListenerTestRunner runner) { return(runner.Run(ctx, cancellationToken)); }
public Task RunStress(TestContext ctx, CancellationToken cancellationToken, HttpServerProvider provider, [Repeat(50)] int repeat, HttpRequestTestType type, HttpRequestTestRunner runner) { ctx.LogDebug(1, $"RunStress: {repeat}"); return(runner.Run(ctx, cancellationToken)); }
public static void StartServer() { var address = new Uri("http://192.168.1.7:15006/"); _routingProvider = new RoutingProvider(); _httpServerProvider = new HttpServerProvider(address, _routingProvider); _httpServerProvider.Start(); Console.ReadLine(); }
public InstrumentationTestRunner(HttpServerProvider provider, string identifier) { Provider = provider; ServerFlags = provider.ServerFlags | HttpServerFlags.InstrumentationListener; ME = $"{GetType ().Name}({identifier})"; var endPoint = ConnectionTestHelper.GetEndPoint(); var proto = (ServerFlags & HttpServerFlags.NoSSL) != 0 ? "http" : "https"; Uri = new Uri($"{proto}://{endPoint.Address}:{endPoint.Port}/"); var parameters = GetParameters(identifier); Server = new BuiltinHttpServer( Uri, endPoint, ServerFlags, parameters, provider.SslStreamProvider); }
public HttpInstrumentationTestRunner(HttpServerProvider provider, HttpInstrumentationTestType type) : base(provider, type.ToString()) { Type = type; }
public HttpRequestTestRunner(HttpServerProvider provider, HttpRequestTestType type) : base(provider, type.ToString()) { Type = type; }