Instructions You must bring your own laptop, your presentation and a power supply Technical staff is...
-
Upload
london-chinery -
Category
Documents
-
view
213 -
download
0
Transcript of Instructions You must bring your own laptop, your presentation and a power supply Technical staff is...
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
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)
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.
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
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
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.
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(); } }
DemoLets do a Hello OWIN self hosted app. app.Use( (context, next) => { context.Response.ContentType = "text/html"; return context.Response.WriteAsync("Hello Owin World");
});
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
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
DemoLets do a SignalR ChatServer
http://campusdays2013.cloudapp.net/ http://campusdays2013-customer.azurewebsites.net/
SERVER Clients
DemoLast Demo, VS 2013 SPA Template – Katana Security
Updated SPA Site for RTM version of AspNet Identity.https://github.com/s093294/aspnet-identity-rtm
© 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
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