21
Hrvoje Hudoletnjak Fortempo d.o.o. ASP.NET PRESENT AND FUTURE

ASP.NET: Present and future

Embed Size (px)

DESCRIPTION

what's happening in ASP.NET, and where things are going. Or course, at time of writing (September 2013)

Citation preview

Page 1: ASP.NET: Present and future

Hrvoje HudoletnjakFortempo d.o.o.

ASP.NET PRESENT AND FUTURE

Page 2: ASP.NET: Present and future

AGENDA

• Web tooling in Visual Studio 2013 RC1• WebForms• ASP.NET MVC 5• SPA• WebAPI 2• ASP.NET Identity• OWIN/KATANA

Page 3: ASP.NET: Present and future

FRAMEWORK & TOOLS

• Faster release cycle, every ~ 6 months

• ASP.NET 4.5 VS2012

Sept 2012

• ASP.NET and Web Tools 2012.2

Feb 2013

• VS2013Fall2013

Page 4: ASP.NET: Present and future

VISUAL STUDIO 2013

• New Web Project Experience• Scaffolding• Browser Links (SignalR browser<->VS)• New Razor/HTML/JS editor (still old editor for

WebForms)• Azure Web Sites from Server Explorer• Web Publish Enhancements• Nuget 2.7 (Restore pck on by default)

Page 5: ASP.NET: Present and future

ONE ASP.NET

• One project• Add any framework to any project• Scaffolding works across all frameworks• Configurabile auth (new identity system)• OWIN Hosting (Open Web Interface for .NET)

Page 6: ASP.NET: Present and future

ONE ASP.NET

ASP.NET

WebForms

Sites

WebPages

Single

PageApps

MVCWebAPI

SignalR

Services

YOU! YOU!

Page 7: ASP.NET: Present and future

ASP.NET 4.5

GENERAL• Script & Libraries as NuGet• Async• Web Optimization• Request Validation• Data Annotations• HTML 5 Web Sockets (IIS 8, SignalR)• 30% Faster Start• 30% Smaller Memory

Page 8: ASP.NET: Present and future

WEBFORMS

• HTML 5• Request validation• Strongly Typed Data Controls• Model Binders• HTML Encoded Data-Binding Expressions• Unobtrusive JS Validation

Page 9: ASP.NET: Present and future

STRONGLY TYPED DATA CONTROLS

Page 10: ASP.NET: Present and future

MVC 5

• Async• New templates (Bootstrap)• Scaffolding• HTML 5 support• Entity Framework 6 w/ Migrations• ASP.NET Identity

Page 11: ASP.NET: Present and future

SPA

Atwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript.

Page 12: ASP.NET: Present and future

SPAWeb page title

http://www.url.com

Browser (Hardware Layer)JavaScript (OS)

Memory Management

Garbage Collection

Graphics Subsystems

HTML, CSS, Canvas, Web GL,

Audio, Video

Storage

Cookies, IndexedDb,File API

Threading

Web Workers

Events

DOM Events,Callbacks

Network

WebSockets,XHR, Offline,

Realtime

Security

Sandbox, SSL,CORS

APIs

GeoLocation,Sensors

Page 13: ASP.NET: Present and future

SPA

• SPA is new Silverlight (thick client)• Durandal/Knockout (MS backed, Caliburn.Micro

vNext)• Angular (Google backed)• Ember (for big projects)• Backbone (gives structure)• VanillaJS (no frameworks please)• All that goes to REST HTTP API (WebAPI,

OpenRasta, ServiceStack, …)

Page 14: ASP.NET: Present and future

WEB API 2

• External Auth (FB, TW, Google, MS Acc, …)• CORS Requests• Attribute routing• Request Batching• OData improvements• OWIN Host

Page 15: ASP.NET: Present and future

ASP.NET IDENTITY GOALS

• Works with WebForms, MVC, WebAPI, WebPages, SignalR

• Ease of plugging in user profile dana• Persistance control with EF CF, SharePoint, Azure

Table Storage, NoSql, …• Unit testability• Simple Role provider• Claims based• External Logins• OWIN Based

Page 16: ASP.NET: Present and future

ASP.NET IDENTITY

Page 17: ASP.NET: Present and future

OWIN

Current processing pipeline

MY APPLICATION

ASP.NET

IIS

Page 18: ASP.NET: Present and future

OWIN

• Inspired by Rack (Ruby), WSGI (Python)• specification for how Web frameworks and Web servers

interact

MY APPLICATION

OWIN Middleware Pipeline

STATIC HTML

SIGNALR

WEB API

NANCY FX

SERVER

HOST

IIS / ASP.NETHTTPLISTENER

IIS / ASP.NETCUSTOMOWIN

HOST.exe

KA

TA

NA

Page 19: ASP.NET: Present and future

EF 6 RC1

• Customizing Code First Conventions.• Logging of database commands.• Stored Procedure Mapping.• Asynchronous Queries and Save support.• Code based configuration support.• EF Power Tools (not new to EF6).

Page 20: ASP.NET: Present and future

QUESTION?

Thank you for your time!

Hrvoje Hudoletnjakhttp://www.hudosvibe.nethttp://twitter.com/[email protected]

Page 21: ASP.NET: Present and future

OUR SPONSORS MADE THIS POSSIBLE!THANK YOU!