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?
#WebAndBeyon
d
Grazie

SignalR 2.0

More Related Content

Similar to SignalR 2.0

Cert04 70-484 - essentials of developing windows store apps
Cert04   70-484 - essentials of developing windows store appsCert04   70-484 - essentials of developing windows store apps
Cert04 70-484 - essentials of developing windows store appsDotNetCampus
 
Help desk itil gestione degli asset it e dei dispositivi mobile - User Confer...
Help desk itil gestione degli asset it e dei dispositivi mobile - User Confer...Help desk itil gestione degli asset it e dei dispositivi mobile - User Confer...
Help desk itil gestione degli asset it e dei dispositivi mobile - User Confer...
ManageEngine Italia
 
Dream report presentazione it-mg emt2
Dream report presentazione it-mg emt2Dream report presentazione it-mg emt2
Dream report presentazione it-mg emt2
Enzo M. Tieghi
 
SAL 2018 - Ditech-News
SAL 2018 - Ditech-NewsSAL 2018 - Ditech-News
SAL 2018 - Ditech-News
Mauro Sanfilippo
 
Application insights-gabrome18
Application insights-gabrome18Application insights-gabrome18
Application insights-gabrome18
Roberto Albano
 
Microsoft Application Insights
Microsoft Application InsightsMicrosoft Application Insights
Microsoft Application Insights
Roberto Albano
 
Adobe: Stefano Longo, Web 2.0: come le imprese se ne possono avvantaggiare
Adobe: Stefano Longo, Web 2.0: come le imprese se ne possono avvantaggiareAdobe: Stefano Longo, Web 2.0: come le imprese se ne possono avvantaggiare
Adobe: Stefano Longo, Web 2.0: come le imprese se ne possono avvantaggiareManuela Moroncini
 
Azure Application Insights
Azure Application InsightsAzure Application Insights
Azure Application Insights
Klab
 
Cert03 70-486 developing asp.net mvc 4 web applications
Cert03   70-486 developing asp.net mvc 4 web applicationsCert03   70-486 developing asp.net mvc 4 web applications
Cert03 70-486 developing asp.net mvc 4 web applicationsDotNetCampus
 
La gestione integrata dell’infrastruttura e dei servizi IT - User Conference ...
La gestione integrata dell’infrastruttura e dei servizi IT - User Conference ...La gestione integrata dell’infrastruttura e dei servizi IT - User Conference ...
La gestione integrata dell’infrastruttura e dei servizi IT - User Conference ...
ManageEngine Italia
 
Dominopoint meet the experts 2015 - XPages
Dominopoint   meet the experts 2015 - XPagesDominopoint   meet the experts 2015 - XPages
Dominopoint meet the experts 2015 - XPages
Dominopoint - Italian Lotus User Group
 
Email marketing and Web 2.0 - Email Power 2007
Email marketing and Web 2.0 - Email Power 2007Email marketing and Web 2.0 - Email Power 2007
Email marketing and Web 2.0 - Email Power 2007Alberto Giusti
 
Del furia signalr-to-the-max
Del furia   signalr-to-the-maxDel furia   signalr-to-the-max
Del furia signalr-to-the-maxDotNetCampus
 
SIGNALR TO-THE-MAX: VERSO IL WEB ED OLTRE!
SIGNALR TO-THE-MAX: VERSO IL WEB ED OLTRE!SIGNALR TO-THE-MAX: VERSO IL WEB ED OLTRE!
SIGNALR TO-THE-MAX: VERSO IL WEB ED OLTRE!
DotNetCampus
 
Signal r to the-max
Signal r to the-maxSignal r to the-max
Signal r to the-maxDotNetCampus
 
Gamemate - Design and Prototypical Implementation of an Architecture for shar...
Gamemate - Design and Prototypical Implementation of an Architecture for shar...Gamemate - Design and Prototypical Implementation of an Architecture for shar...
Gamemate - Design and Prototypical Implementation of an Architecture for shar...
Alessandro Sanino
 
Power BI Streaming Data Flow e Azure IoT Central
Power BI Streaming Data Flow e Azure IoT CentralPower BI Streaming Data Flow e Azure IoT Central
Power BI Streaming Data Flow e Azure IoT Central
Marco Parenzan
 
Azure Day Rome Reloaded 2019 - Azure Application Insights Overview
Azure Day Rome Reloaded 2019 - Azure Application Insights OverviewAzure Day Rome Reloaded 2019 - Azure Application Insights Overview
Azure Day Rome Reloaded 2019 - Azure Application Insights Overview
azuredayit
 
Win05 accesso ai dati in win 8
Win05   accesso ai dati in win 8Win05   accesso ai dati in win 8
Win05 accesso ai dati in win 8DotNetCampus
 
Le basi per lo sviluppo su Windows Phone tool, SDK, il primo progetto
 Le basi per lo sviluppo su Windows Phone tool, SDK, il primo progetto Le basi per lo sviluppo su Windows Phone tool, SDK, il primo progetto
Le basi per lo sviluppo su Windows Phone tool, SDK, il primo progetto
Microsoft Mobile Developer
 

Similar to SignalR 2.0 (20)

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

More from Emanuele Bartolesi

Creare PWA con Angular 5 e Visual Studio Code
Creare PWA con Angular 5 e Visual Studio CodeCreare PWA con Angular 5 e Visual Studio Code
Creare PWA con Angular 5 e Visual Studio Code
Emanuele Bartolesi
 
Asp.Net Core in Real World
Asp.Net Core in Real WorldAsp.Net Core in Real World
Asp.Net Core in Real World
Emanuele Bartolesi
 
ASP.NET Core 2.0 - Best Practices per le Web API
ASP.NET Core 2.0 - Best Practices per le Web APIASP.NET Core 2.0 - Best Practices per le Web API
ASP.NET Core 2.0 - Best Practices per le Web API
Emanuele Bartolesi
 
Visual Studio 2017 Saturday - Key note
Visual Studio 2017 Saturday - Key noteVisual Studio 2017 Saturday - Key note
Visual Studio 2017 Saturday - Key note
Emanuele Bartolesi
 
Build a daemon with ASP.NET and Graph API
Build a daemon with ASP.NET and Graph APIBuild a daemon with ASP.NET and Graph API
Build a daemon with ASP.NET and Graph API
Emanuele Bartolesi
 
Global Azure Bootcamp - ASP.NET Core & Azure in Real World
Global Azure Bootcamp - ASP.NET Core & Azure in Real WorldGlobal Azure Bootcamp - ASP.NET Core & Azure in Real World
Global Azure Bootcamp - ASP.NET Core & Azure in Real World
Emanuele Bartolesi
 
Works with ASP.NET Core on Linux and Mac
Works with ASP.NET Core on Linux and MacWorks with ASP.NET Core on Linux and Mac
Works with ASP.NET Core on Linux and Mac
Emanuele Bartolesi
 
Le novità di Visual Studio 2015 per lo sviluppatore ASP.NET
Le novità di Visual Studio 2015 per lo sviluppatore ASP.NETLe novità di Visual Studio 2015 per lo sviluppatore ASP.NET
Le novità di Visual Studio 2015 per lo sviluppatore ASP.NETEmanuele Bartolesi
 
DotNetCampus - Analizzare le performance di un'applicazione asp.net con Glimpse
DotNetCampus - Analizzare le performance di un'applicazione asp.net con GlimpseDotNetCampus - Analizzare le performance di un'applicazione asp.net con Glimpse
DotNetCampus - Analizzare le performance di un'applicazione asp.net con Glimpse
Emanuele Bartolesi
 
Php for ASP.NET Developers
Php for ASP.NET DevelopersPhp for ASP.NET Developers
Php for ASP.NET Developers
Emanuele Bartolesi
 
Azure Media Services & Azure Search
Azure Media Services & Azure SearchAzure Media Services & Azure Search
Azure Media Services & Azure Search
Emanuele Bartolesi
 
NTTsight Academy - App for Office 365 and SharePoint 2013
NTTsight Academy - App for Office 365 and SharePoint 2013NTTsight Academy - App for Office 365 and SharePoint 2013
NTTsight Academy - App for Office 365 and SharePoint 2013
Emanuele Bartolesi
 
Tutto su ASP.NET Identity
Tutto su ASP.NET IdentityTutto su ASP.NET Identity
Tutto su ASP.NET Identity
Emanuele Bartolesi
 
Provarsi i vestiti con il kinect
Provarsi i vestiti con il kinectProvarsi i vestiti con il kinect
Provarsi i vestiti con il kinectEmanuele Bartolesi
 
Creare App per Office 365 con ASP.NET MVC 5
Creare App per Office 365 con ASP.NET MVC 5Creare App per Office 365 con ASP.NET MVC 5
Creare App per Office 365 con ASP.NET MVC 5
Emanuele Bartolesi
 
In-app purchase in Windows Phone 8
In-app purchase in Windows Phone 8In-app purchase in Windows Phone 8
In-app purchase in Windows Phone 8Emanuele Bartolesi
 
Visual Studio 2010 shortcut keys
Visual Studio 2010 shortcut keysVisual Studio 2010 shortcut keys
Visual Studio 2010 shortcut keys
Emanuele Bartolesi
 

More from Emanuele Bartolesi (20)

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

SignalR 2.0