Last active
July 14, 2016 19:38
-
-
Save jchannon/75c88ec1d2f75e97dba0b7f3a471692e 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
public void Configure(IApplicationBuilder app) | |
{ | |
app.UseOwin(x => | |
{ | |
//Use Owin here | |
x.UseFirstPipelineMWThatIsOwin(); | |
//Use ASP.Net Core pipeline inside UseOwin | |
app.Use((context, next) => { | |
context.Request.Headers.Add("CUSTOM", "BOB"); | |
return next(); | |
}); | |
//Use Owin here | |
x.UseMyOwinMW(); | |
}); | |
} |
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 void Configure(IApplicationBuilder app) | |
{ | |
//Use Owin here | |
app.UseOwin(x => x.UseFirstPipelineMWThatIsOwin()); | |
//Use ASP.Net Core pipeline | |
app.Use((context, next) => { | |
context.Request.Headers.Add("CUSTOM", "BOB"); | |
return next(); | |
}); | |
//Use Owin here | |
app.UseOwin(x.UseMyOwinMW()); | |
} |
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 void Configure(IApplicationBuilder app) | |
{ | |
//Use middleware converted for owin to aspnetcore pipeline here | |
app.UseFirstPipelineMWThatIsConvertedFromOwin()); | |
//Use ASP.Net Core pipeline | |
app.Use((context, next) => { | |
context.Request.Headers.Add("CUSTOM", "BOB"); | |
return next(); | |
}); | |
//Use Owin here where we have to at the bottom | |
app.UseOwin(x.UseMyOwinMW()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment