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