SlideShare a Scribd company logo
emanuele@smartcoretech.com
#WebAndBeyon
d
Sponsor
L’evoluzione del web
Siti Statici HTML

Pagine dinamiche, forms

Aggiornamenti parziali pagine (ajax), RIA

Applicazioni Real Time
Social Network
Actions
Stock Tickers
Web Chats
Altre applicationi
•

Live scores
• Giochi
• Apps collaborative (Office 365)
• Statistiche live
Soluzioni?
•

Polling (Ajax)
• Long Polling
• Server-Sent events (HTML5)
• WebSockets (HTML5)
Chi ci può aiutare?
Cosa è SignalR?
•

•
•
•

Tecnologia UFFICIALE Microsoft per realizzare
applicazioni real time e multi utente:
http://signalr.net
Soluzione client e server
Non ci dobbiamo concentrare sul canale di
trasmissione
OpenSource (potete andare a vedere come è
scritto!) 
Priorità Trasmissione
WebSockets

Server-Sent events

Forever Frame (IE hack)

Long Polling
Architettura
Client side
JS, .NET/WinRT, WP, Silverlight, iOS/Android

Hub API

PersistentConnection API
Hubs
• High-level API
• Simile ai Controller

(actions, thread per call)
Scenari supportati
• Client calling the server
• Server calling clients (all, group, one)
• State round-tripping between client and

•
•
•
•

server
Binding complex objects (JSON)
Detecting connect, disconnect and
reconnect clients
Broadcasting from outside of a Hub
Async scenarios (return Task/Task<T> to
client)
Il server chiama il client
• dynamic Clients property
• JSON serialization
Chiamate dall’esterno
• Notify clients from another
server-side code
Client JavaScript
• $.connection.hub
• connection for all hubs (url points to /signalr)
• $.connection.hub.id
• client id for the hub connection
• $.connection.hub.start()
• starts the connection for all hubs
• $.connection.{hubname}
• access a client side hub from the generated proxy
Esporre i metodi sul client
• Il client JavaScript può dichiarare metodi che possono essere
invocati dal server:

• myHub.{method} = callback
• method - nome del metodo client
• callback - funzione da eseguire quando il server invoca il
metodo
Autenticazione
• Si può usare il meccanismo di autenticazione di
•
•
•

ASP.NET
Si può utilizzare l’attributo “Authorize” per gli
Hubs
Autenticazione Forms e Windows
Supporta i certificati https
Cosa realizzeremo?
SignalR 2.0
#WebAndBeyon
d
Grazie

SignalR 2.0

More Related Content

PPTX
Analizzare le performance di un'applicazione ASP.NET con Glimpse
PPTX
Mobile e Smart Client
PPTX
Game matching with SignalR
PDF
Game matching with SignalR
PPTX
DevOps@Work 2017 - Application insights more control, more power
PPTX
Application insights - Power is nothing without control
PPTX
EtnaDev 2016 - Application Insights
PPTX
Application insights - Meet{cast} - Meetup #AperiTech dotNET{podcast} - Marzo...
Analizzare le performance di un'applicazione ASP.NET con Glimpse
Mobile e Smart Client
Game matching with SignalR
Game matching with SignalR
DevOps@Work 2017 - Application insights more control, more power
Application insights - Power is nothing without control
EtnaDev 2016 - Application Insights
Application insights - Meet{cast} - Meetup #AperiTech dotNET{podcast} - Marzo...

Similar to SignalR 2.0 (20)

PPTX
Cert04 70-484 - essentials of developing windows store apps
PDF
Help desk itil gestione degli asset it e dei dispositivi mobile - User Confer...
PDF
Dream report presentazione it-mg emt2
PPTX
SAL 2018 - Ditech-News
PPTX
Application insights-gabrome18
PPTX
Microsoft Application Insights
PPT
Adobe: Stefano Longo, Web 2.0: come le imprese se ne possono avvantaggiare
PPTX
Azure Application Insights
PPTX
Cert03 70-486 developing asp.net mvc 4 web applications
PDF
La gestione integrata dell’infrastruttura e dei servizi IT - User Conference ...
PPT
Dominopoint meet the experts 2015 - XPages
PPT
Email marketing and Web 2.0 - Email Power 2007
PPTX
Signal r to the-max
PPTX
SIGNALR TO-THE-MAX: VERSO IL WEB ED OLTRE!
PPTX
Del furia signalr-to-the-max
PPTX
Gamemate - Design and Prototypical Implementation of an Architecture for shar...
PPTX
Power BI Streaming Data Flow e Azure IoT Central
PDF
Azure Day Rome Reloaded 2019 - Azure Application Insights Overview
PPTX
Win05 accesso ai dati in win 8
PDF
Le basi per lo sviluppo su Windows Phone tool, SDK, il primo progetto
Cert04 70-484 - essentials of developing windows store apps
Help desk itil gestione degli asset it e dei dispositivi mobile - User Confer...
Dream report presentazione it-mg emt2
SAL 2018 - Ditech-News
Application insights-gabrome18
Microsoft Application Insights
Adobe: Stefano Longo, Web 2.0: come le imprese se ne possono avvantaggiare
Azure Application Insights
Cert03 70-486 developing asp.net mvc 4 web applications
La gestione integrata dell’infrastruttura e dei servizi IT - User Conference ...
Dominopoint meet the experts 2015 - XPages
Email marketing and Web 2.0 - Email Power 2007
Signal r to the-max
SIGNALR TO-THE-MAX: VERSO IL WEB ED OLTRE!
Del furia signalr-to-the-max
Gamemate - Design and Prototypical Implementation of an Architecture for shar...
Power BI Streaming Data Flow e Azure IoT Central
Azure Day Rome Reloaded 2019 - Azure Application Insights Overview
Win05 accesso ai dati in win 8
Le basi per lo sviluppo su Windows Phone tool, SDK, il primo progetto
Ad

More from Emanuele Bartolesi (20)

PPTX
Creare PWA con Angular 5 e Visual Studio Code
PPTX
Asp.Net Core in Real World
PPTX
ASP.NET Core 2.0 - Best Practices per le Web API
PPTX
Visual Studio 2017 Saturday - Key note
PPTX
Build a daemon with ASP.NET and Graph API
PPTX
Global Azure Bootcamp - ASP.NET Core & Azure in Real World
PPTX
Works with ASP.NET Core on Linux and Mac
PPTX
Le novità di Visual Studio 2015 per lo sviluppatore ASP.NET
PPTX
DotNetCampus - Analizzare le performance di un'applicazione asp.net con Glimpse
PPTX
Php for ASP.NET Developers
PPTX
Azure Media Services & Azure Search
PPTX
NTTsight Academy - App for Office 365 and SharePoint 2013
PPTX
Tutto su ASP.NET Identity
PPTX
Provarsi i vestiti con il kinect
PPTX
Creare App per Office 365 con ASP.NET MVC 5
PPTX
In-app purchase in Windows Phone 8
PPTX
WebAPI 2.0
PPTX
Asp.Net MVC 5
PPTX
SQLite - Overview
PPTX
Visual Studio 2010 shortcut keys
Creare PWA con Angular 5 e Visual Studio Code
Asp.Net Core in Real World
ASP.NET Core 2.0 - Best Practices per le Web API
Visual Studio 2017 Saturday - Key note
Build a daemon with ASP.NET and Graph API
Global Azure Bootcamp - ASP.NET Core & Azure in Real World
Works with ASP.NET Core on Linux and Mac
Le novità di Visual Studio 2015 per lo sviluppatore ASP.NET
DotNetCampus - Analizzare le performance di un'applicazione asp.net con Glimpse
Php for ASP.NET Developers
Azure Media Services & Azure Search
NTTsight Academy - App for Office 365 and SharePoint 2013
Tutto su ASP.NET Identity
Provarsi i vestiti con il kinect
Creare App per Office 365 con ASP.NET MVC 5
In-app purchase in Windows Phone 8
WebAPI 2.0
Asp.Net MVC 5
SQLite - Overview
Visual Studio 2010 shortcut keys
Ad

SignalR 2.0