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