Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
OWIN! Embrace Open Source
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Chris Houdeshell
November 25, 2013
Programming
1.4k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
OWIN! Embrace Open Source
Chris Houdeshell
November 25, 2013
Other Decks in Programming
See All in Programming
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
Workers Cache を知る
syumai
0
360
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
ChromeでローカルLLM
ryu1013
0
140
golang-bob.pdf
iwatsukayura
0
130
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
Event is what happens
moro
2
770
Featured
See All Featured
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Navigating Team Friction
lara
192
16k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
600
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
410
Designing Powerful Visuals for Engaging Learning
tmiket
1
610
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
570
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
490
For a Future-Friendly Web
brad_frost
184
10k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
A designer walks into a library…
pauljervisheath
211
25k
Transcript
OWIN! Embrace Open Source
@CHOUDESHELL http://www.choudeshell.com
Developer @ EnergyCAP Tinkernaut @ Home* * After being a
and a (if she didn’t delete Doctor Who)
Heckling is OK.
Agenda TopShelf (Quickly) Owin Katana Code
Let’s get started…
TopShelf
Simplifies Windows Services “Just” a console app Installation is as
easy as “app.exe install” Debugged just like a console app
None
None
{{ CODE }}
What is OWIN?
Open Web Interface for .NET
“… a standard interface between .NET web servers and web
applications. The goal of OWIN is to decouple server and application and, by being an open standard, stimulate the open source ecosystem of .NET web development tools.” -- Open Web Server Interface for .NET, v1.0.0
Open Source / Open Governed
Similar to Ruby’s Rack and Python’s WSGI
Why OWIN?
None
And we all hate reading standards…
application delegate & environment dictionary
environment dictionary is just a… IDictionary<string, object>
None
application delegate is just a… Func<IDictionary<,>, Task>
Func<IDictionary<string, object>, Task>
The OWIN pipeline AppFunc AppFunc AppFunc
But the story doesn’t stop there…
Katana Project
Open Source / Microsoft Governed
“… is a flexible set of components for building and
hosting OWIN-based web applications.”
Katana implements OWIN in a modular architecture. Any piece can
be swapped out.
Application Middleware Server Host
Host
Manages the underlying process & Construction of the OWIN pipeline
IIS Custom Host (Self-Host) OwinHost.exe
Server
Accept requests & Starts execution of the OWIN pipeline
Built-in support of 2 servers… HttpListener SystemWeb
HttpListener uses http.sys/HttpListener to construct a socket listens for requests
to accept executes OWIN pipeline
SystemWeb registers a ASP.NET HttpModule within IIS to intercept requests
executes OWIN pipeline if not handled by OWIN, returns to integrated pipeline
The separation between Host & Server can be blurry…
Entry point
{{ CODE }}
Application
Func<Microsoft.Owin.IOwinContext, System.Threading.Tasks.Task>
None
{{ CODE }}
Middleware
Handled before Application and in order
Integrated Pipeline
WebApi2 as Middleware
{{ MAGIC? }}
Maybe.
OwinRequest HttpRequestContext Task Completed.
Implementing our own Middleware…
{{ CODE }}
Popular Middleware
None
None
None
None
None
None
Separation of concerns
Razor View Engine & MVC Middleware
THANKS! Follow me on the Twitters @CHOUDESHELL