instructions you must bring your own laptop, your presentation and a power supply technical staff is...

15

Upload: london-chinery

Post on 01-Apr-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video
Page 2: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

Azure

Poul Kjeldager Sørensen

Introduktion til OWIN og Katana Projektet

Windows Azure LeadComposite A/S

Stud.MSc. Mathematical Modelling and ComputationBSc. Software Technology from DTUWork : [email protected] www.composite.netPrivate : [email protected] www.s-innovations.nethttps://twitter.com/pksorensenhttps://about.me/pksorensenhttps://www.linkedin.com/in/pksorensen

Page 3: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

Agenda

Introdution til OWIN og Katana Projektet

• OWIN• Demo ( Get Started with OWIN and Middlewares )• Demo ( Lets do a Hello OWIN self hosted app )• Demo ( Lets add a WebAPI, Signalr , DI - and create a Chat Server

on Azure )• Demo ( VS 2013 SPA Template – Katana Security)

Page 4: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

OWIN Open Web Interface for .NETThe 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.

Page 5: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

Open Web Interface for .NET

• Interfacing webservers for web applications.

• Simpler Web Development

map.UseCors(CorsOptions.AllowAll);

and many more

app.MapSignalR()app.UseWebApi(config);

HostsKatana {SystemWeb,HttpListener}

Nowin

Uses Owin:Nancy, Signalr, WebAPI,FubuMVC, Simple.Web

Page 6: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

Architecture

Specification

• IDictionary<string, object>• "owin.RequestBody“ : stream• "owin.RequestHeaders“ :

dic<str,str[]>• and so forth

• Func<IDictionary<string, object>, Task>;• I/O Friendly and chainable.

Middleware / Applications

• Func<IDictionary<string, object>, Task>;

Host / Server

• IIS / OwinHost.exe• Microsoft.Owin.Host.SystemWe

b• Microsoft.Owin.Host.HttpListen

er

Page 7: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

Applications and Middleware

Web Application – A specific application, possibly built on top of a Web Framework, which is run using OWIN compatible Servers.

Middleware – Pass through components that form a pipeline between a server and application to inspect, route, or modify request and response messages for a specific purpose.

Page 8: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

DemoGet Started with OWIN and Middlewareshttps://gist.github.com/s093294/6868042 (only show page between 12:00 and 14:00)

public class Startup { public void Configuration(IAppBuilder app) { app.UseWelcomePage(); } }

Page 9: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

DemoLets do a Hello OWIN self hosted app. app.Use( (context, next) => { context.Response.ContentType = "text/html"; return context.Response.WriteAsync("Hello Owin World");

});

Page 10: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

Katana

VS201x – Tools > Library Package Manager > Package Manager Settings

• MyGet Katana: http://myget.org/F/katana/

• MyGet Owin: http://myget.org/F/owin/

Package Manager Console:

• Get-Package -ListAvailable -preCheck the source code on codeplex

Page 11: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

DemoLets add a WebAPI.

///api/channel9?url=http://channel9.msdn.com/Events/Microsoft-Campus-Days/Microsoft-Campus-Days-2013/RSS [RoutePrefix("api/channel9")] public class Channel9Controller : ApiController {

[HttpGet("")] public IHttpActionResult GetEvents(string url) { return new Channel9ActionResult(Request, url); } }

https://gist.github.com/s093294/6808547

Page 12: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

DemoLets do a SignalR ChatServer

http://campusdays2013.cloudapp.net/ http://campusdays2013-customer.azurewebsites.net/

SERVER Clients

Page 13: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

DemoLast Demo, VS 2013 SPA Template – Katana Security

Updated SPA Site for RTM version of AspNet Identity.https://github.com/s093294/aspnet-identity-rtm

Page 14: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation.  Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.  MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Thank you

Page 15: Instructions You must bring your own laptop, your presentation and a power supply Technical staff is present in all to assist with network, audio and video

EvaluationCreate a Text message on your phone and send it to 1919 with the content:

AZ303 5 5 5 I liked it a lotSession Code

PoulPerformance

(1 to 5)

Match of technical Level

(1 to 5)

Relevance(1 to 5) Comments

(optional)

Evaluation Scale: 1 = Very bad 2 = Bad 3 = Relevant 4 = Good 5 = Very Good!

Questions:• Speaker Performance• Relevance according to your work • Match of technical level according to

published level• Comments