410 likes | 425 Views
Developing amazing web apps with ASP.NET Core. Daniel Roth Program Manager Microsoft. BRK3195. ASP.NET Core – built for the web. Open source & cross-platform Web UI, web APIs, real-time, microservices Fast, reliable, secure. ASP.NET Core 2.1 Now available!. ASP.NET Core with SignalR.
E N D
Developing amazing web apps with ASP.NET Core Daniel Roth Program Manager Microsoft BRK3195
ASP.NET Core – built for the web Open source & cross-platform Web UI, web APIs, real-time, microservices Fast, reliable, secure
ASP.NET Core 2.1 Now available!
ASP.NET Core with SignalR ASP.NET Core 2.1 MVC Web API SignalR Razor Pages .NET Standard .NET Framework .NET Core
Azure SignalR Service • Add real-time web functionalities easily with Azure and .NET Core 2.1 • Enable via “services.AddSignalR().AddAzureSignalR()” Fully managed service No more worries about capacity provisioning, scaling, or persistent connections Native SignalR development </> Use ASP.NET Core SignalR to build real-time experiences such as chat, stock tickers, live dashboards, and instant broadcasting
New in ASP.NET Core 2.1 SignalR Razor class libraries Identity UI library & scaffolding HTTPS GDPR MVC functional testing [ApiController], ActionResult<T> IHttpClientFactory Kestrel on Sockets Generic host builder Updated SPA templates Performance
ASP.NET Core 2.1 performance +12% +11% +123% REQUESTS / SECOND Data sourced from tests in our labs on same hardware as TechEmpower
Get started with ASP.NET Core 2.1 Install the .NET Core 2.1 SDK https://dot.net Available with Visual Studio 2017 15.8 https://visualstudio.com/
ASP.NET Core 2.1 Daniel Roth
.NET C# Python JS? F# Go Java Ruby Rust
“Blazor” experimental project Full-stack web development with .NET via WebAssembly Requires no plugin or code transpilation Works in all modern browsers including mobile browsers Browser + Razor = Blazor!
How Blazor works BROWSER .cs App.dll Compile to .NET assemblies .NET (mscorlib.dll, System.Core.dll,…) .cshtml WebAssembly (mono.wasm)
ASP.NET Core SignalR + Blazor Daniel Roth
ASP.NET Core 2.2 Preview 2
ASP.NET Core 2.2 features Web API improvements Template updates: Bootstrap 4, Angular 6 HTTP/2 IIS in-process hosting Health checks Endpoint routing SignalR Java client
Get started with ASP.NET Core 2.2 Preview 2 Install the .NET Core 2.2 Preview 2 SDK https://www.microsoft.com/net/download/dotnet-core/2.2 Install Visual Studio 2017 15.9 Preview 2 https://visualstudio.com/preview/
Get started with ASP.NET Core 2.2 Preview 2 Daniel Roth
APIs are everywhere! APIs APIs APIs APIs
Web API improvements in ASP.NET Core 2.2 Easier to create Easier to test & debug Easier to document Easier to consume Easier to secure Easier to monitor Improved performance
Web API improvements Daniel Roth
Web API improvements in ASP.NET Core 2.2 Easier to create Easier to test & debug Easier to document Easier to consume Easier to secure Easier to monitor Improved performance → API Scaffolding → HTTP REPL, Problem Details → API conventions & analyzer → Code generation → Web API security → Health checks integration → HTTP/2, endpoint routing, IIS in-proc hosting
HTTP/2 Now available cross-platform in Kestrel Application-Layer Protocol Negotiation (ALPN) Header compression Multiplexed streams over same connection Some limitations Server push, stream prioritization not currently supported Not supported for edge use at this time
HTTP/2 Daniel Roth
IIS in-process hosting Out of process (current) In process (NEW!)
IIS in-process hosting Improved performance, reliability, and diagnostics
IIS in-process hosting – Performance! 4x faster!
Health checks Add dedicated health endpoints to your application Integrate with container orchestrators and load balancers Support liveness and readiness probes
Health checks Daniel Roth
ASP.NET Core 2.2 features Template updates: Bootstrap 4, Angular 6 Web API improvements HTTP/2 IIS in-process hosting Health checks Endpoint routing SignalR Java client
ASP.NET Core 2.2 schedule Preview 2 - Sept Preview 3 – Oct RTW – Year-end 2018
Build amazing web apps with ASP.NET Core today! ASP.NET Core 2.1 https://dot.net ASP.NET Core 2.2. Preview 2 https://www.microsoft.com/net/download/dotnet-core/2.2 Blazor https://blazor.net
Please evaluate this sessionYour feedback is important to us! Please evaluate this session through MyEvaluations on the mobile appor website. Download the app:https://aka.ms/ignite.mobileApp Go to the website: https://myignite.techcommunity.microsoft.com/evaluations
Endpoint routing New routing implementation On by default for 2.2 with compatibility switches Better throughput (~10%) and scalability Link to endpoints from outside of MVC Various minor improvements Parameter transformers, new catch all syntax {**path}
SignalR Java client Connect to ASP.NET Core SignalR hubs in Java Available via Gradle and Maven Now supports Azure SignalR Service Complete Android sample https://github.com/aspnet/SignalR-samples/tree/master/AndroidJavaClient
SignalR Android client Daniel Roth