Missed update after rebasing
This commit is contained in:
parent
bd10d507f8
commit
9edd6f60b9
|
|
@ -30,23 +30,24 @@ namespace Microsoft.AspNet.Server.Kestrel.FunctionalTests
|
||||||
})
|
})
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
var hostBuilder = new WebHostBuilder(config);
|
var builder = new WebApplicationBuilder()
|
||||||
hostBuilder.UseServerFactory("Microsoft.AspNet.Server.Kestrel");
|
.UseConfiguration(config)
|
||||||
hostBuilder.UseStartup(app =>
|
.UseServerFactory("Microsoft.AspNet.Server.Kestrel")
|
||||||
{
|
.Configure(app =>
|
||||||
var serverInfo = app.ServerFeatures.Get<IKestrelServerInformation>();
|
|
||||||
app.Run(context =>
|
|
||||||
{
|
{
|
||||||
if (context.Request.Body != lastStream)
|
var serverInfo = app.ServerFeatures.Get<IKestrelServerInformation>();
|
||||||
|
app.Run(context =>
|
||||||
{
|
{
|
||||||
lastStream = context.Request.Body;
|
if (context.Request.Body != lastStream)
|
||||||
streamCount++;
|
{
|
||||||
}
|
lastStream = context.Request.Body;
|
||||||
return context.Request.Body.CopyToAsync(context.Response.Body);
|
streamCount++;
|
||||||
});
|
}
|
||||||
});
|
return context.Request.Body.CopyToAsync(context.Response.Body);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
using (var app = hostBuilder.Build().Start())
|
using (var app = builder.Build().Start())
|
||||||
{
|
{
|
||||||
using (var client = new HttpClient())
|
using (var client = new HttpClient())
|
||||||
{
|
{
|
||||||
|
|
@ -84,21 +85,22 @@ namespace Microsoft.AspNet.Server.Kestrel.FunctionalTests
|
||||||
})
|
})
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
var hostBuilder = new WebHostBuilder(config);
|
var hostBuilder = new WebApplicationBuilder()
|
||||||
hostBuilder.UseServerFactory("Microsoft.AspNet.Server.Kestrel");
|
.UseConfiguration(config)
|
||||||
hostBuilder.UseStartup(app =>
|
.UseServerFactory("Microsoft.AspNet.Server.Kestrel")
|
||||||
{
|
.Configure(app =>
|
||||||
var serverInfo = app.ServerFeatures.Get<IKestrelServerInformation>();
|
|
||||||
app.Run(context =>
|
|
||||||
{
|
{
|
||||||
if (context.Request.Body != lastStream)
|
var serverInfo = app.ServerFeatures.Get<IKestrelServerInformation>();
|
||||||
|
app.Run(context =>
|
||||||
{
|
{
|
||||||
lastStream = context.Request.Body;
|
if (context.Request.Body != lastStream)
|
||||||
streamCount++;
|
{
|
||||||
}
|
lastStream = context.Request.Body;
|
||||||
return context.Request.Body.CopyToAsync(context.Response.Body);
|
streamCount++;
|
||||||
|
}
|
||||||
|
return context.Request.Body.CopyToAsync(context.Response.Body);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
using (var app = hostBuilder.Build().Start())
|
using (var app = hostBuilder.Build().Start())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue