locked
ASP.NET Core middleware VS OWIN middleware RRS feed

  • Question

  • User-1868956463 posted

    Hi all, 

       I started reading about this .net core.

       I am used to writing web API's and I have some basic knowledge about OWIN middlewares. I have a couple of questions..

         -   I would like to know what is the difference  / relationship between ASP.NET Core middleware and OWIN middleware.

         - While writing the OWIN middleware, I use to mention at which stage the middleware needs to be executed, using UseStageMarker(PipelineStage.*). But while writing the .net core middleware, how can I mention the stage where the middleware needs to be executed. 

          Would be great if you could share your thoughts on this or provide some link that describes the above.

    Thanks.

    Sunday, August 2, 2020 7:46 PM

Answers

  • User475983607 posted

    msv

    -   I would like to know what is the difference  / relationship between ASP.NET Core middleware and OWIN middleware.

    Middleware is a vital part of the ASP.NET Core framework.  OWIN is standard used to add features to ASP.NET.   

    msv

    While writing the OWIN middleware, I use to mention at which stage the middleware needs to be executed, using UseStageMarker(PipelineStage.*). But while writing the .net core middleware, how can I mention the stage where the middleware needs to be executed. 

    Core uses a chain of middleware.  I recommend  reading the official documentation.  IMHO, reading the docs is much better than posting the same information here on the forum.

    https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-3.1

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, August 2, 2020 10:04 PM
  • User-821857111 posted

    how can I mention the stage where the middleware needs to be executed. 
    Refer to the Middleware Order section in the docs: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-3.1#middleware-order

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 5, 2020 2:22 PM

All replies

  • User475983607 posted

    msv

    -   I would like to know what is the difference  / relationship between ASP.NET Core middleware and OWIN middleware.

    Middleware is a vital part of the ASP.NET Core framework.  OWIN is standard used to add features to ASP.NET.   

    msv

    While writing the OWIN middleware, I use to mention at which stage the middleware needs to be executed, using UseStageMarker(PipelineStage.*). But while writing the .net core middleware, how can I mention the stage where the middleware needs to be executed. 

    Core uses a chain of middleware.  I recommend  reading the official documentation.  IMHO, reading the docs is much better than posting the same information here on the forum.

    https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-3.1

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, August 2, 2020 10:04 PM
  • User-821857111 posted

    how can I mention the stage where the middleware needs to be executed. 
    Refer to the Middleware Order section in the docs: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-3.1#middleware-order

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 5, 2020 2:22 PM