Slide 1

Slide 1 text

OWIN Oh my... what´s that and why should I care? Robert Muehsig @robert0muehsig

Slide 2

Slide 2 text

Thanks to the sponsors

Slide 3

Slide 3 text

Who am I? Robert Muehsig @robert0muehsig http://code-inside.de/blog-in

Slide 4

Slide 4 text

Who am I? <3 HTTP, ASP.NET & the Web ASP.NET MVP

Slide 5

Slide 5 text

Who am I? Working in Switzerland @ OneOffixx AG

Slide 6

Slide 6 text

Who am I? Former Employer T-Systems Multimedia Solutions GmbH in Dresden, Germany* *Moved in August to Switzerland

Slide 7

Slide 7 text

What is OWIN? Open Web Interface for .NET

Slide 8

Slide 8 text

What is OWIN? A Spec!

Slide 9

Slide 9 text

But for what?

Slide 10

Slide 10 text

Once upon a time

Slide 11

Slide 11 text

Masterplan one big framework to rule them all ASP.NET was born in 2002

Slide 12

Slide 12 text

Slide 13

Slide 13 text

new frameworks appear

Slide 14

Slide 14 text

Lightweight & Modular New Masterplan

Slide 15

Slide 15 text

Inspiration for OWIN Ruby with Rack Node.js Phyton WSGI

Slide 16

Slide 16 text

Inspiration for OWIN All Frameworks have an „Interface“ between WebServer & WebFramework

Slide 17

Slide 17 text

Ruby «Rack» Rack defines an Interface Implemented by different Hosts: WEBrick Mongrel Passenger for nginx & Apache …

Slide 18

Slide 18 text

Ruby «Rack» Rack defines an Interface Implemented by different Frameworks: Rails Sinatra …

Slide 19

Slide 19 text

Ruby «Rack» Rack defines an Interface Supports Middleware: Logging Caching … Pipeline Pattern!

Slide 20

Slide 20 text

State of OWIN

Slide 21

Slide 21 text

OWIN Reached V 1.0 in the last week!

Slide 22

Slide 22 text

History 14 Versions Organized via the Discussion Google Group

Slide 23

Slide 23 text

Current state Incompatible NuGet Packages Not working Samples Not up-to-date Blogposts 

Slide 24

Slide 24 text

Welcome to the Bleeding Edge

Slide 25

Slide 25 text

«Components»

Slide 26

Slide 26 text

OWIN as a Spec

Slide 27

Slide 27 text

OWIN as an Assembly *and NuGet Package

Slide 28

Slide 28 text

Running just OWIN  Might be look like this:

Slide 29

Slide 29 text

OWINs best Friend Hello, Gate! Helper on Top of OWIN Middleware

Slide 30

Slide 30 text

OWIN Hosts IIS HttpDefaultListener Firefly Mono Katana*

Slide 31

Slide 31 text

OWIN Frameworks ASP.NET NancyFx SignalR WebApi FubuMVC …

Slide 32

Slide 32 text

«Katana Project» - the MS Glue Provide Adapters for: Microsoft Frameworks Microsoft Hosts Non-MS-Frameworks like NancyFx *NancyFx will support OWIN nativly

Slide 33

Slide 33 text

«Katana Project» - the MS Glue «Tooling» – Host for OWIN Hosts

Slide 34

Slide 34 text

Getting started with OWIN Download Katana Project //codeplex Download Katana.exe via Chocolatey

Slide 35

Slide 35 text

Chocolatey? Apt-Get, but for Windows based on NuGet

Slide 36

Slide 36 text

Chocolatey! @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new- object net.webclient).DownloadString('http://bit.ly/psChocInstall'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin cinst Katana

Slide 37

Slide 37 text

«Time for VS»

Slide 38

Slide 38 text

//Empty WebApp Sample… ASP.NET

Slide 39

Slide 39 text

//Katana Samples ASP.NET, WebApi, WebSockets

Slide 40

Slide 40 text

//ConsoleNancySignalR

Slide 41

Slide 41 text

Middleware… so easy: private static Func, Task> LogRequests(Func, Task> next) { return env => { var output = Dict.Get(env, "host.TraceOutput", () => Console.Out); output.WriteLine( "{0} {1}{2} {3}", env["owin.RequestMethod"], env["owin.RequestPathBase"], env["owin.RequestPath"], env["owin.RequestQueryString"]); return next(env); }; }

Slide 42

Slide 42 text

Next steps?

Slide 43

Slide 43 text

Education! (.NET WebDev) People should know OWIN

Slide 44

Slide 44 text

Why is it cool?

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

Compose to this:

Slide 47

Slide 47 text

Resources: Owin.org WheresLou.com Katanaproject.codeplex.com

Slide 48

Slide 48 text

Please rate this session Scan the code, go online, rate this session