Created
April 30, 2020 14:35
-
-
Save CoreProgramm/afd1f39354270f1ca9f3aac91f512684 to your computer and use it in GitHub Desktop.
Custom Middleware
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
public async Task Invoke(HttpContext httpContext) | |
{ | |
await httpContext.Response.Body.WriteAsync(Encoding.ASCII.GetBytes("Called from Custom Middleware -- ")); | |
await _next.Invoke(httpContext); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment