microsoft webapi & signalr

19
WebAPI & SignalR Robin Sedlaczek

Upload: robin-sedlaczek

Post on 24-May-2015

949 views

Category:

Software


4 download

DESCRIPTION

Presentation for my lecture/talk on Microsoft ASP.NET WebAPI and SignalR in the Dot.Net Developer Group Berlin-Brandenburg.

TRANSCRIPT

Page 1: Microsoft WebApi & SignalR

WebAPI & SignalRRobin Sedlaczek

Page 2: Microsoft WebApi & SignalR

Robin Sedlaczek18 Jahre Erfahrung als Entwickler

8 Jahre Erfahrung als Projektleiter

seit 4 Jahren CTO und Gesellschafter bei der Fairmas GmbH in Berlin

Autor für Windows Developer & DotNetPro

MSDN Community-Mitglied/Moderator

MVA Contributor

Contributor bei SharpGL (GitHub)

Mail: [email protected]

Twitter: https://twitter.com/RobinSedlaczek

Blog: http://robinsedlaczek.wordpress.com/

Page 3: Microsoft WebApi & SignalR

WCF & SOAP

Page 4: Microsoft WebApi & SignalR

1998 von Don Box, Dave Winter (Microsoft)jetzt XML Protocol Working Group (W3C)WSDL, UDDIWS*-Spezifikationschwergewichtiges Nachrichtenformat mit vielen Funktionen

SOAP

Page 5: Microsoft WebApi & SignalR

WCF = Windows Communication FoundationSammlung aller Kommunikations-Techniken im .Net-Frameworkausgerichtet auf SOAPandere Formate (z.B. JSON) möglich, aber nicht sehr gut unterstütztConfiguration-HellClosed Source

WCF

Page 6: Microsoft WebApi & SignalR

Demo

Page 7: Microsoft WebApi & SignalR

WebAPI

Page 8: Microsoft WebApi & SignalR
Page 9: Microsoft WebApi & SignalR

ASP.NET WebAPI => neues Branding, nicht mehr WCFleichtgewichtiges Framework für Web ServicesBasis ist JSON kann aber auch XML und andere Formatenutzt HTTP-Verben richtig => nutzt das Internet, wie es gedacht istgeht in ASP.NET vNext (VS2014) auf in ASP.NET MVC 6Open Source unter .Net Foundation (http://www.dotnetfoundation.org/)

WebAPI

Page 10: Microsoft WebApi & SignalR

Demo

Page 11: Microsoft WebApi & SignalR

SignalR

Page 12: Microsoft WebApi & SignalR

OWIN & KATANA

OWIN => Spezifikation aus der Community (owin.org)

KATANA =>Referenzimplementierung von Microsoft

Page 13: Microsoft WebApi & SignalR

Was ist SignalR?

API für RPC (Server to Client)benutzt WebSockets, Long Polling, Server Sent Events, Forever Frame etc.automatisches Connection Management (connect, disconnect, grouping)Broadcasts oder Messages einzelnen Clientspersistente ConnectionsLogging: $.connection.hub.logging = true;Open Source unter .Net Foundation (http://www.dotnetfoundation.org/)

Page 14: Microsoft WebApi & SignalR

Quelle: Microsoft

Page 15: Microsoft WebApi & SignalR

Quelle: Microsoft

Page 16: Microsoft WebApi & SignalR

Unterstützte Betriebssysteme

Windows Server 2012

Windows Server 2008 r2

Windows 8

Windows 7

Windows Azure

Page 17: Microsoft WebApi & SignalR

Unterstützte IIS-Versionen IIS 8 or IIS 8 Express.

IIS 7 and 7.5 with support for extensionless URLs is required.

IIS must be running in integrated mode; classic mode is not supported. Message delays of up to 30 seconds may be experienced if IIS is run in classic mode using the Server-Sent Events transport.

The hosting application must be running in full trust mode.

Page 18: Microsoft WebApi & SignalR

Unterstützte Browser

Transport Internet Explorer

Chrome(Windows or iOS)

Firefox Safari (OSX or iOS) Android

WebSockets 10+ current - 1 current - 1 current - 1 N/A

Server-Sent Events N/A current - 1 current - 1 current - 1 N/A

ForeverFrame 8+ N/A N/A N/A 4.1

Long Polling 8+ current - 1 current - 1 current - 1 4.1

Attention: jQuery version 1.6.4 or major later versions (such as 1.7.2, 1.8.2, or 1.9.1) required!

Page 19: Microsoft WebApi & SignalR

Demo