private static IWebHost CreateTargetServer(ProxyContext context) { return(TestServerStartup.KestrelBasedServerOnRandomPort() .ConfigureServices(collection => collection.AddSingleton(context)) .Build()); }
public TestServerStartup(ProxyContext proxyContext) { _proxyContext = proxyContext; }