Skip to content

Instantly share code, notes, and snippets.

@furkantoptass
Created March 19, 2022 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furkantoptass/d2cf4e065f2a463621a97df4bba0b805 to your computer and use it in GitHub Desktop.
Save furkantoptass/d2cf4e065f2a463621a97df4bba0b805 to your computer and use it in GitHub Desktop.
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