SlideShare a Scribd company logo
SIGNALR + ASP.NET
MVC
LEVERAGING ON REAL-TIME DATA UPDATES
TOPICS
• Introduction to ASP.NET MVC 6 + ASP.NET 5
• Key Concepts of SignalR
• Quick Look at SignalR
• SignalR with ASP.NET MVC 6 deep-dive demo
• Questions & Answer
ASP.NET MVC 6 + ASP.NET 5
• ASP.NET is now on Mac and Linux
• No More Web Forms
• No More Visual Basic
• Tag Helpers versus MVC Helpers
• View Components
• Microsoft.AspNet.Mvc.Controller
• AngularJS
SIGNALR
Advocating a Real Time Data Communication between UIs
KEY CONCEPTS
•Remote Procedural Calls (RPC)
•WebSocket Wrapper
•Transports & Fallbacks
KEY CONCEPTS: “SERVER PUSHING”
“SignalR supports "server push"
functionality, in which server code can
call out to client code in the browser
using Remote Procedure Calls (RPC),
rather than the request-response model
common on the web today. ”
KEY CONCEPTS: TRANSPORTS
• HTML5 Transports
• WebSocket – only transport that establishes true two way persistent connection
• Server Sent Events - EventSource
• Comet Transports (makes use of HTTP)
• Forever Frame (only IE)
• Ajax Long Polling
KEY CONCEPTS: TRANSPORTS
$.connection.hub.logging = true;
• Enable Logging in your code
• Opening the Console Window in your web browser
KEY CONCEPTS: SPECIFYING A TRANSPORT
If you know the client’s capability…
connection.start({ transport: 'longPolling' });
If not, always make sure there is a fallback…
connection.start({ transport: ['webSockets','longPolling'] });
KEY CONCEPTS: SPECIFYING A TRANSPORT
•webSockets
•foreverFrame
•serverSentEvents
•longPolling
KEY CONCEPTS: CONNECTIONS & HUBS
• Persistent Connection
• Low-level communication protocol
• PersistentConnection class
• Hub
• High-level pipeline
• Allowing clients to call methods on servers
• Similarity to .NET Remoting
KEY CONCEPTS: HOW HUBS WORK
• Server-side calls a method on the client
• A packet is sent across (name of method + parameters)
• If the parameter is an object, it will be serialized as JSON
• Client checks to see if the method exists in client-side coding
• If exists, the method is executed using the deserialized parameter data.
KEY CONCEPTS: WHEN TO USE PERSISTENT
CONNECTION?
• The format of the actual message sent needs to be specified.
• The developer prefers to work with a messaging and dispatching model rather
than a remote invocation model.
• An existing application that uses a messaging model is being ported to use
SignalR.
GETTING STARTED
install-package Microsoft.AspNet.SignalR
DEMO
TELERIK PROFILE
•Since 2002
•Over 1.7 million developers
•Developer-focused
ABIT ABOUT TELERIK
• UI Toolkits – Web Forms, MVC, Silverlight, Kendo UI, WinForms, WPF, UWP
(Windows 10), and many more.
• Telerik Test Studio – Automated Testing solution (Native Mobile Apps)
• Telerik Platform – Cross-platform Mobile App Development & Management
• Telerik Sitefinity – Web Content Management System
CONTACT
• http://theprogrammingnerd.com
• http://github.com/telerikgeek
• Skype: metanoia.sherman
• Instagram: telerikgeek
• Twitter: telerikgeek
QUESTIONS?

More Related Content

PDF
React Router: React Meetup XXL
PDF
Swagger With REST APIs.pptx.pdf
PDF
Context API in React
PPTX
Azure Logic Apps
PPTX
Blazor Full-Stack
PPTX
PDF
Arquitetura Node com NestJS
PDF
Introduction to Spring Boot
React Router: React Meetup XXL
Swagger With REST APIs.pptx.pdf
Context API in React
Azure Logic Apps
Blazor Full-Stack
Arquitetura Node com NestJS
Introduction to Spring Boot

What's hot (20)

PDF
React JS - Introduction
PPTX
Introduction to GraphQL
PPTX
Introduction to node.js
PPTX
Java Lambda Expressions.pptx
PDF
Struts Basics
PDF
Nestjs MasterClass Slides
PDF
Solid NodeJS with TypeScript, Jest & NestJS
PPTX
Hexagonal architecture with Spring Boot
PDF
Angular Observables & RxJS Introduction
PPTX
Jdbc
PPTX
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
PPTX
.Net Core
PPTX
Azure Logic Apps
ODP
Elasticsearch for beginners
PDF
What is Node.js | Node.js Tutorial for Beginners | Node.js Modules | Node.js ...
PDF
Spring boot introduction
PPTX
Redux workshop
ODP
Introduction to Swagger
PPT
Graphql presentation
PPTX
Basic Concept of Node.js & NPM
React JS - Introduction
Introduction to GraphQL
Introduction to node.js
Java Lambda Expressions.pptx
Struts Basics
Nestjs MasterClass Slides
Solid NodeJS with TypeScript, Jest & NestJS
Hexagonal architecture with Spring Boot
Angular Observables & RxJS Introduction
Jdbc
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
.Net Core
Azure Logic Apps
Elasticsearch for beginners
What is Node.js | Node.js Tutorial for Beginners | Node.js Modules | Node.js ...
Spring boot introduction
Redux workshop
Introduction to Swagger
Graphql presentation
Basic Concept of Node.js & NPM
Ad

Similar to SignalR with ASP.NET MVC 6 (20)

PDF
Introduction to SignalR
PPTX
ASP.NET MVC 5 and SignalR 2
PPTX
Realtime web experience with signalR
PPTX
Web Techdfasvfsvgsfgnolofgdfggy Unit I.pptx
PDF
Cloud-native Data: Every Microservice Needs a Cache
PDF
MongoDB MEAN Stack Webinar October 7, 2015
PPTX
What's New in .Net 4.5
PPTX
Real Time Data Visualization using asp.net / SignalR + D3.js
PDF
Wcf v1-day1
PPTX
Aspnet mvc
PPTX
Real-time web applications using SharePoint, SignalR and Azure Service Bus
PPTX
Asynchrone Echtzeitanwendungen für SharePoint mit SignalR und knockout.js
PPTX
Webinar: Get Started with the MEAN Stack
PPT
Getting started with ASPNET Core SignalR
PDF
Introduction to ASP.NET MVC
PPTX
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
PPTX
Micro services
PDF
CMPE282_009994036_PROJECT_REPORT
PPTX
Overview of SignalR
PDF
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
Introduction to SignalR
ASP.NET MVC 5 and SignalR 2
Realtime web experience with signalR
Web Techdfasvfsvgsfgnolofgdfggy Unit I.pptx
Cloud-native Data: Every Microservice Needs a Cache
MongoDB MEAN Stack Webinar October 7, 2015
What's New in .Net 4.5
Real Time Data Visualization using asp.net / SignalR + D3.js
Wcf v1-day1
Aspnet mvc
Real-time web applications using SharePoint, SignalR and Azure Service Bus
Asynchrone Echtzeitanwendungen für SharePoint mit SignalR und knockout.js
Webinar: Get Started with the MEAN Stack
Getting started with ASPNET Core SignalR
Introduction to ASP.NET MVC
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Micro services
CMPE282_009994036_PROJECT_REPORT
Overview of SignalR
Escaping the yellow bubble - rewriting Domino using MongoDb and Angular
Ad

More from Tung Nguyen Thanh (20)

PPTX
How to become senior .net developer
PPTX
Docker for .net developer
PDF
Domain Driven Design Introduction
PPTX
Continuous Delivery with VS2015 and TFS2015
PPTX
Agile .NET Development with BDD and Continuous Integration
PPT
Performance Tuning And Optimization Microsoft SQL Database
PPTX
HaNoi Net Group Introduction
PPTX
Software architecture for high traffic website
PPTX
TDD - Test Driven Development
PPTX
Refactoring code in .net
PPTX
Visual studio 2015 ide new features
PPTX
Whatmakesoftwareflexible
PDF
How to release every week case study of continuous integration
PDF
Xp not windows xp
PDF
Is xp still extreme
PDF
Workshop fight legacy code write unit test
PPTX
Windows Phone Introduction
PPTX
Developing windows phone 7 application with silverlight
PDF
Top 100 .NET Interview Questions and Answers
PPTX
New in Visual Studio and TFS 2013
How to become senior .net developer
Docker for .net developer
Domain Driven Design Introduction
Continuous Delivery with VS2015 and TFS2015
Agile .NET Development with BDD and Continuous Integration
Performance Tuning And Optimization Microsoft SQL Database
HaNoi Net Group Introduction
Software architecture for high traffic website
TDD - Test Driven Development
Refactoring code in .net
Visual studio 2015 ide new features
Whatmakesoftwareflexible
How to release every week case study of continuous integration
Xp not windows xp
Is xp still extreme
Workshop fight legacy code write unit test
Windows Phone Introduction
Developing windows phone 7 application with silverlight
Top 100 .NET Interview Questions and Answers
New in Visual Studio and TFS 2013

Recently uploaded (20)

PDF
top salesforce developer skills in 2025.pdf
PDF
medical staffing services at VALiNTRY
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
AI in Product Development-omnex systems
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Essential Infomation Tech presentation.pptx
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
System and Network Administration Chapter 2
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
top salesforce developer skills in 2025.pdf
medical staffing services at VALiNTRY
PTS Company Brochure 2025 (1).pdf.......
How Creative Agencies Leverage Project Management Software.pdf
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
AI in Product Development-omnex systems
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Wondershare Filmora 15 Crack With Activation Key [2025
Essential Infomation Tech presentation.pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Softaken Excel to vCard Converter Software.pdf
System and Network Administration Chapter 2
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf

SignalR with ASP.NET MVC 6

  • 1. SIGNALR + ASP.NET MVC LEVERAGING ON REAL-TIME DATA UPDATES
  • 2. TOPICS • Introduction to ASP.NET MVC 6 + ASP.NET 5 • Key Concepts of SignalR • Quick Look at SignalR • SignalR with ASP.NET MVC 6 deep-dive demo • Questions & Answer
  • 3. ASP.NET MVC 6 + ASP.NET 5 • ASP.NET is now on Mac and Linux • No More Web Forms • No More Visual Basic • Tag Helpers versus MVC Helpers • View Components • Microsoft.AspNet.Mvc.Controller • AngularJS
  • 4. SIGNALR Advocating a Real Time Data Communication between UIs
  • 5. KEY CONCEPTS •Remote Procedural Calls (RPC) •WebSocket Wrapper •Transports & Fallbacks
  • 6. KEY CONCEPTS: “SERVER PUSHING” “SignalR supports "server push" functionality, in which server code can call out to client code in the browser using Remote Procedure Calls (RPC), rather than the request-response model common on the web today. ”
  • 7. KEY CONCEPTS: TRANSPORTS • HTML5 Transports • WebSocket – only transport that establishes true two way persistent connection • Server Sent Events - EventSource • Comet Transports (makes use of HTTP) • Forever Frame (only IE) • Ajax Long Polling
  • 8. KEY CONCEPTS: TRANSPORTS $.connection.hub.logging = true; • Enable Logging in your code • Opening the Console Window in your web browser
  • 9. KEY CONCEPTS: SPECIFYING A TRANSPORT If you know the client’s capability… connection.start({ transport: 'longPolling' }); If not, always make sure there is a fallback… connection.start({ transport: ['webSockets','longPolling'] });
  • 10. KEY CONCEPTS: SPECIFYING A TRANSPORT •webSockets •foreverFrame •serverSentEvents •longPolling
  • 11. KEY CONCEPTS: CONNECTIONS & HUBS • Persistent Connection • Low-level communication protocol • PersistentConnection class • Hub • High-level pipeline • Allowing clients to call methods on servers • Similarity to .NET Remoting
  • 12. KEY CONCEPTS: HOW HUBS WORK • Server-side calls a method on the client • A packet is sent across (name of method + parameters) • If the parameter is an object, it will be serialized as JSON • Client checks to see if the method exists in client-side coding • If exists, the method is executed using the deserialized parameter data.
  • 13. KEY CONCEPTS: WHEN TO USE PERSISTENT CONNECTION? • The format of the actual message sent needs to be specified. • The developer prefers to work with a messaging and dispatching model rather than a remote invocation model. • An existing application that uses a messaging model is being ported to use SignalR.
  • 15. DEMO
  • 16. TELERIK PROFILE •Since 2002 •Over 1.7 million developers •Developer-focused
  • 17. ABIT ABOUT TELERIK • UI Toolkits – Web Forms, MVC, Silverlight, Kendo UI, WinForms, WPF, UWP (Windows 10), and many more. • Telerik Test Studio – Automated Testing solution (Native Mobile Apps) • Telerik Platform – Cross-platform Mobile App Development & Management • Telerik Sitefinity – Web Content Management System
  • 18. CONTACT • http://theprogrammingnerd.com • http://github.com/telerikgeek • Skype: metanoia.sherman • Instagram: telerikgeek • Twitter: telerikgeek

Editor's Notes

  • #6: Remote Procedural Calls – from your server code, you can call the client code in your web browser WebSocket If you were to code an application directly using WebSockets, you can, but you will then need to write a lot of other code to manage the falling back of the WebSocket. What this means is SignalR will continue to be updated to support changes in the underlying transport, providing your application a consistent interface across versions of WebSocket Transports SignalR is an abstraction over some of the transports required to pass information back and forth the server and client. Starts with HTTP, and will be upgraded to WebSocket whenever available WebSocket is most efficient when it comes down to the use of server memory
  • #8: Server Sent Events: If the browser supports Server Sent Events, which is basically all browsers except Internet Explorer. Forever Frame: Forever Frame creates a hidden IFrame which makes a request to an endpoint on the server that does not complete. The server then continually sends script to the client which is immediately executed, providing a one-way realtime connection from server to client. The connection from client to server uses a separate connection from the server to client connection, and like a standard HTML request, a new connection is created for each piece of data that needs to be sent. Ajax Long Polling: Long polling does not create a persistent connection, but instead polls the server with a request that stays open until the server responds, at which point the connection closes, and a new connection is requested immediately. This may introduce some latency while the connection resets.