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