D:\VC\AspNetGit\SignalR-samples
вторник, 19 сентября 2023 г.
.NET Generic Host , ASP.NET Core, WPF
Console
https://learn.microsoft.com/ru-ru/dotnet/core/extensions/generic-host
https://learn.microsoft.com/en-us/dotnet/core/extensions/generic-host
.Net in Container
https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Hosting/src/Host.cs
https://laurentkempe.com/2019/09/03/WPF-and-dotnet-Generic-Host-with-dotnet-Core-3-0/
https://github.com/dotnet/wpf/issues/499
https://github.com/laurentkempe/WpfGenericHost
D:\VC\AspNetGit\WpfGenericHost
Project
D:\VC\AspNetCore\WpfInAspHost\WebWpfHostInAsp\WpfGenericHost\
понедельник, 18 сентября 2023 г.
Asp.Net, WebSocket, Http2, Support
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/websockets?view=aspnetcore-7.0
Http/2 WebSockets support
Using WebSockets over HTTP/2 takes advantage of new features such as:
- Header compression.
- Multiplexing, which reduces the time and resources needed when making multiple requests to the server.
These supported features are available in Kestrel on all HTTP/2 enabled platforms. The version negotiation is automatic in browsers and Kestrel, so no new APIs are needed.
.NET 7 introduced Websockets over HTTP/2 support for Kestrel, the SignalR JavaScript client, and SignalR with Blazor WebAssembly.
Note
HTTP/2 WebSockets use CONNECT requests rather than GET, so your own routes and controllers may need updating. For more information, see Add HTTP/2 WebSockets support for existing controllers in this article.
Chrome and Edge have HTTP/2 WebSockets enabled by default, and you can enable it in FireFox on the about:config page with the network.http.spdy.websockets flag.
Samples
https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/websockets/samples
Samples How
WebSockets
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/websockets?view=aspnetcore-7.0#sample-app