O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Signal r core workshop - netconf

114 visualizações

Publicada em

SignalR core workshop - netconf

Publicada em: Software
  • Seja o primeiro a comentar

Signal r core workshop - netconf

  1. 1. SignalR core WorkShop Miguel Teheran - @mteheran .Net Senior Developer
  2. 2. Agenda • Introduction and concept • Demo from scratch • Advanced demo • Azure SignalR services
  3. 3. Introduction and concept What is signalR core ?
  4. 4. What is signalR core ? ASP.NET Core SignalR is an open-source library that simplifies adding real-time web functionality to apps. When use it? • Dashboards and monitoring apps • Collaborative apps • Notifications functionality
  5. 5. SingnalR vs SingnalR Core ASP.NET SignalR ASP.NET Core SignalR Server NuGet Package Microsoft.AspNet.SignalR Microsoft.AspNetCore.App (.NET Core) Microsoft.AspNetCore.SignalR (.NET Framework) Client NuGet Packages Microsoft.AspNet.SignalR.Client Microsoft.AspNet.SignalR.JS Microsoft.AspNetCore.SignalR.Client Client npm Package signalr @aspnet/signalr Server App Type ASP.NET (System.Web) or OWIN Self- Host ASP.NET Core Supported Server Platforms .NET Framework 4.5 or later .NET Framework 4.6.1 or later .NET Core 2.1 or later
  6. 6. SingnalR Core vs SingnalR • No more JQuery dependency • No more Hub State • No more single-model scale out • High performance
  7. 7. SignalR Core Features • Routing • Hub parameter binding • JSON & Message package protocols • Streaming results from hubs methods • Typed Hubs • .Net Client
  8. 8. Architecture SignalR core
  9. 9. Demo - Workshop Let’s code
  10. 10. SignalR Core Security • Strongly Typed Hubs • SSL • ApplicationMaxBufferSize and TransportMaxBufferSize • Configure CORS
  11. 11. SignalR Core future • Client - reconnect • More clients: Java, IOS, C++ • User presence • TPC/IP real scenarios
  12. 12. Advanced demo
  13. 13. SignalR Core + React.JS • npm install @aspnet/signalr • import * as signalR from '@aspnet/signalr'; const protocol = new signalR.JsonHubProtocol(); const transport = signalR.HttpTransportType.WebSockets; const options = { transport, logMessageContent: true, logger: signalR.LogLevel.Trace }; this.setState({ connection : new signalR.HubConnectionBuilder() .withUrl('urlhere', options) .withHubProtocol(protocol) ..build() },()=> { this.state.connection.start().catch(err => console.error(err, 'red')); this.state.connection.on('method', this.clientmethod); } );
  14. 14. Azure SignalR Services Azure SignalR Service is a fully-managed service that allows developers to focus on building real-time web experiences without worrying about capacity provisioning, reliable connections, scaling, encryption or authentication.
  15. 15. Resources https://github.com/Mteheran/SignalRWhiteBoard https://github.com/aspnet/SignalR-samples
  16. 16. Thank you!

×