• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Real-Time Web Applications with ASP.NET WebAPI and SignalR

Real-Time Web Applications with ASP.NET WebAPI and SignalR



More info on http://www.techdays.be

More info on http://www.techdays.be



Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

    Real-Time Web Applications with ASP.NET WebAPI and SignalR Real-Time Web Applications with ASP.NET WebAPI and SignalR Presentation Transcript

    • ASP.NET Web APIJim Wang
    • How to reach more clients?
    • How to make it scale?
    • How to keep it simple?
    • Leverage the Web – build Web APIs
    • ASP.NET Web API A framework for creating HTTP services that can reach a broad range of clients including browsers and mobile devices
    • features First class modern HTTP  Available as NuGet packages programming model  Great templates and tooling in Easily map resources to URIs 2012.2 release, like help pages Content negotiation  Fully open source Request validation Flexible hosting Lightweight .NET 4+
    • ASP.NET Web API ODataComponents for implementing OData servicesModel builders, formatters (Atom/JSON/XML), path and query parsers, LINQ expression generator, etcSupport common patterns using an open protocolEx. query, paging, relationships, metadataBuilt on ODataLibSame underpinnings as WCF Data ServicesOpen source and accepting contributionshttp://aspnetwebstack.codeplex.com
    • Three Steps to Get StartedCreate your EDM ODataConventionModelBuilder modelBuilder = new ODataConventionModelBuilder(); modelBuilder.EntitySet<Movie>("Movies"); IEdmModel model = modelBuilder.GetEdmModel();Configure your OData Route config.Routes.MapODataRoute(routeName: "OData", routePrefix: "odata", model: model);Implement an OData Controller public class MoviesController : EntitySetController<Movie, int> {...}
    • Data Model for ODataThe ASP.NET Web API core runtime has no datamodelObjects formatted to/from opaque blobs by formattersOData is based on the Entity Data Model (EDM)Entity sets, entities, relationships, complex types, actions, functionsHaving a data model means the framework can domore for youProvide metadata, setup routes, rich link generation, query, pagingYour OData EDM can be different from your EFEDM
    • Query Support[Queryable] action filter enables OData querysupportCan be used independent of the formatODataQueryOptions provides the parsed queryASTApply the query to an IQueryableTranslate the Abstract Syntax Tree to your query mechanism of choiceQuery validationRestrict supported query options, functions, expression operators, queryable properties, etc.PagingSet PageSize to your desired max page size
    • what’s next? Security with OAuth2, JWT OData $expand, $select Odata scaffolding for templates SignalR integration CORS, JSONP
    • signalRJim Wang
    • what is it?SignalR : Incredibly simple real-time for ASP.NET Automatic protocol negotiation Simplicity Reach Performance
    • where are we?github.com/SignalR/SignalR1.0 RTW with ASP.NET 2012.2
    • clientsToday Future? jQuery  Pure JavaScript (no jQuery) .NET 4.0+  C++ (Windows Store & Embedded) Silverlight 5  MonoTouch/MonoDroid Windows Phone 8  Objective C .NET for Windows Store apps  Java  …
    • what’s next? Monthly point releases More documentation and samples More templates and scaffolding Scale out  Service Bus  SQL Server  Redis
    • knockout.jsJim Wang
    • features
    • let’s build.Jim Wang
    • get ASP.NET and Web Tools 2012.2www.asp.net/vnext
    • linksKnockout.jshttp://knockoutjs.comBootstraphttp://twitter.github.com/bootstrap/OData Security Guidance for Web APIhttp://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-security-guidance
    • questions?Jim Wang@turanukjim.wang@microsoft.com