-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStartup.cs
More file actions
21 lines (19 loc) · 537 Bytes
/
Copy pathStartup.cs
File metadata and controls
21 lines (19 loc) · 537 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
namespace Https.Tests
{
public class Startup
{
public void Configure(IApplicationBuilder app)
{
app.UseMiddleware<RedirectMiddleware>();
app.UseMiddleware<MirrorMiddleware>();
app.UseMiddleware<TimeoutMiddleware>();
app.Run(async (context) =>
{
await context.Response.WriteAsync("Hello!");
});
}
}
}