Created
August 21, 2015 01:21
-
-
Save dcomartin/29640d3aafd0c243b8e6 to your computer and use it in GitHub Desktop.
OwinMiddlwareClass
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 class CustomMiddleware : OwinMiddleware | |
{ | |
public CustomMiddleware(OwinMiddleware next) : base(next) | |
{ | |
} | |
public async override Task Invoke(IOwinContext context) | |
{ | |
context.Response.Headers["MachineName"] = Environment.MachineName; | |
await Next.Invoke(context); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment