Created
March 19, 2022 22:20
-
-
Save furkantoptass/d2cf4e065f2a463621a97df4bba0b805 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.Use(async (context, next) => | |
{ | |
await context.Response.WriteAsync("app.Use() 1 Oncesi\n"); | |
await next(); | |
await context.Response.WriteAsync("app.Use() 1 Sonrasi\n"); | |
}); | |
app.Use(async (context, next) => | |
{ | |
await context.Response.WriteAsync("app.Use() 2 Oncesi\n"); | |
await next(); | |
await context.Response.WriteAsync("app.Use() 2 Sonrasi\n"); | |
}); | |
app.Run(async (context) => | |
{ | |
await context.Response.WriteAsync("app.Run() 1 MERHABALAR\n"); | |
}); | |
// Bu kısım çalışmayacak | |
app.Run(async (context) => | |
{ | |
await context.Response.WriteAsync("app.Run() 2 MERHABALAR\n"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment