-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the "What's new in ASP.NET Core 9.0" for .NET 9 Release Candidate 1 #33442
Comments
Keep-Alive Timeout for WebSocketsThe WebSockets middleware can now be configured for keep alive timeouts. The keep alive timeout will abort the WebSocket and throw from The keep alive timeout can be configured globally for the WebSocket middleware: app.UseWebSockets(new WebSocketOptions { KeepAliveTimeout = TimeSpan.FromSeconds(15) }); Or configured per accepted WebSocket: app.Run(async (context) =>
{
using var webSocket = await context.WebSockets.AcceptWebSocketAsync(
new WebSocketAcceptContext { KeepAliveTimeout = TimeSpan.FromSeconds(15) });
// ...
} |
Keyed DI in MiddlewareMiddleware now supports Keyed DI in both the constructor and the private class MyMiddleware
{
private readonly RequestDelegate _next;
public MyMiddleware(RequestDelegate next, [FromKeyedServices("name")] IService service)
{
_next = next;
}
public Task Invoke(HttpContext context, [FromKeyedServices("obj")] IRequestService requestService) => _next(context);
} See Write custom ASP.NET Core middleware for more information on writing custom middleware. Thanks to NicoBrabers for this contribution! |
Override
|
From @JamesNK: Improvements to SignalR distributed tracing.NET 9 preview 6 added initial support for SignalR distributed tracing. RC1 improves SignalR tracing with new capabilities:
Here's how these new activities look in the .NET Aspire dashboard: |
Just a side-note on process: I do not suggest we have to figure it out now for this release, but it seems like at some point we could do this all one place with one source (and perhaps, even one publication) for the same audience. Here are some things I see happening:
It is a process that inherently invites some problems that might be avoided. |
|
I will combine this new SignalR Client ActivitySource with the existing section we have for the SignalR Hub ActivitySource as two sub-sections to a SignalR ActivitySource section. (Unless that isn't wanted.) |
@wadepickett Yup, that's the intent. The What's New doc should be a full aggregation of the new features. It doesn't need to capture every delta along the way - that's what the preview release notes are for. |
Description
Update the "What's new in ASP.NET Core 9.0" for .NET 9 Release Candidate 1
Page URL
https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-9.0?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/release-notes/aspnetcore-9.0.md
Document ID
4e75ad25-2c3f-b28e-6a91-ac79a9c683b6
Article author
@Rick-Anderson
The text was updated successfully, but these errors were encountered: