Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 4.25 KB

aspnetcore.md

File metadata and controls

66 lines (44 loc) · 4.25 KB

ASP.NET Core in .NET 9 Preview 3 - Release Notes

Here's a summary of what's new in ASP.NET Core in this preview release:

  • Endpoint metadata on the developer exception page
  • Added InternalServerError and InternalServerError<TValue> to TypedResults
  • Handle keyboard composition events in Blazor

ASP.NET Core updates in .NET 9 Preview 3:

.NET 9 Preview 3:

Endpoint metadata on the developer exception page

ASP.NET Core endpoints have associated metadata that can be used for a variety of purposes, like configuring routing, authentication and authorization, response caching, rate limiting, OpenAPI generation, and much more. The Routing tab of the ASP.NET Core developer exception page now desplays endpoint metadata alongside other routing information to facilitate debugging.

image

Thank you @Kahbazi for this contribution!

Added InternalServerError and InternalServerError<TValue> to TypedResults

TypedResults are a helpful vehicle for returning strongly-typed HTTP status code-based responses from a minimal API. The TypedResults class now includes factory methods and types for returning "500 Internal Server Error" responses from your endpoints.

var app = WebApplication.Create();

app.MapGet("/", () => TypedResults.InternalServerError("Something went wrong!"));

app.Run();

Thank you @onurmicoogullari for this contribution!

Handle keyboard composition events in Blazor

The new KeyboardEventArgs.IsComposing property indicates if the keyboard event is part of a composition session. This is useful for tracking the composition state of keyboard events, which is crucial for handling international character input methods.

Thank you @BattlefieldDuck for this contribution!

Community contributors

Thank you contributors! ❤️