Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

fvilers/OWIN-Katana

Repository files navigation

OWIN-Katana

These are the code samples I've demonstrated on the DevFM #10 : OWIN & Katana event at the Microsoft Innovation Center in Mons, Belgium.

This repository contains 5 samples with different iterations.

  1. HelloWorld
    • Raw: an inline delegate that returns the well-known Hello, world! message;
    • HTML: the same sample but now returning a whole HTML document;
    • Strongly typed: the same sample but using the OwinContext instead of a weakly typed dictionary;
  2. Chaining
    • Short-circuit: an example of how to not chain middlewares;
    • The right way: an example of how to chain middlewares;
    • Both ways: an example of how the request and response navigates in the OWIN pipeline;
  3. Conditionals
    • Nested app: a nested app that responds to a specific path;
    • More nested app: a nested app with two level of depth;
    • When condition: a nested app that responds to a specific path and when a condition is met;
  4. Middlewares
    • Custom classes: an example of how to create custom middleware classes;
    • Reading request: demoing how to read the request body stream multipe times;
    • WebAPI: an example of how to integrate ASP.NET Web API into an OWIN pipeline;
  5. CompleteSample
    • CompleteSample: a complete sample of a pipleine with 3 actual middlewares (logging, authentication and Web API)

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages