-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Document what's new in ASP.NET Core for .NET 9 Preview 6 #32960
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
Comments
@javiercn please add content for the features that you've implemented in preview6 (fingerprinting). Also the new RenderMode API changes. |
@halter73 please add content for the AllowAnonymous change that you've done. |
@MackinnonBuck anything from you that I forgot to mention? Confirmed with Mackinnon that there is nothing from his side to include in this milestone. |
@Rick-Anderson ... The file delivery and fingerprinting will be for RP, MVC, and Blazor, so we have a similar situation for coverage as we did last preview. API/usage is a bit different, as you can see in dotnet/aspnetcore#56076. We'll probably have two What's New sections again. For Blazor, I'll probably place detailed coverage in article coverage and cross-link to it from What's New with a short explanation on the basics of the new features. |
@guardrex do you need anything in addition to what's already covered in dotnet/aspnetcore#56076? For the other thing we did, we renamed ComponentPlatform to RendererInfo and renamed the property Platform in RenderHandle/ComponentBase to RendererInfo dotnet/aspnetcore@d57ef96 |
I think there's plenty there to write from. I'll message you (and/or Rick will) if we run into trouble on Monday.
Already there ... just waiting to pull the trigger ... [HOLD, Pre6] Rename 'Platform' to 'RendererInfo' |
Improved Activities for SignalR SignalR now has an The following image was made using the Aspire dashboard and the OpenTelemetry packages:
as well as the following code in startup: // Set OTEL_EXPORTER_OTLP_ENDPOINT environment variable depending on where your OTEL endpoint is
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages();
builder.Services.AddSignalR();
builder.Services.AddOpenTelemetry()
.WithTracing(tracing =>
{
if (builder.Environment.IsDevelopment())
{
// We want to view all traces in development
tracing.SetSampler(new AlwaysOnSampler());
}
tracing.AddAspNetCoreInstrumentation();
tracing.AddSource("Microsoft.AspNetCore.SignalR.Server");
});
builder.Services.ConfigureOpenTelemetryTracerProvider(tracing => tracing.AddOtlpExporter()); |
@Rick-Anderson ... I'm working on the Blazor-specific static asset updates (fingerprinting, etc.) for the Blazor Static Files article, and I should have a PR up for review shortly. The following link can be used for the new feature What's New blurb ...
... and you can use that anytime because it isn't linking to a new section. I think for the What's New blurb, it could be as simple as the edited opening remarks on "History" and "Goals" that Javier provided at ... UPDATE: PR is up, and I'll call for review shortly 👉 #33010 |
Analyzer to warn when [Authorize] is overridden by [AllowAnymous] from "farther" awayMany people don't realize that the relative order of [AllowAnonymous]
public class MyController
{
[Authorize] // Possible bug
public IActionResult Private() => null;
}
[AllowAnonymous]
public class MyControllerAnon : ControllerBase
{
}
[Authorize] // Possible bug
public class MyControllerInherited : MyControllerAnon
{
}
public class MyControllerInherited2 : MyControllerAnon
{
[Authorize] // Possible bug
public IActionResult Private() => null;
}
[AllowAnonymous]
[Authorize] // Possible bug
public class MyControllerMultiple : ControllerBase
{
} In .NET 9 Preview 6, we've introduced an analyzer that will highlight instances like these where a closer
The correct action to take if you see this warning depends on the intention behind the attributes. The further [AllowAnonymous]
public class MyController
{
// Specifying AuthenticationSchemes can still be useful for endpoints that allow but don't require authenticated users.
// This produces no warning because the second "closer" [AllowAnonymous] clarifies that [Authorize] is intentionally overridden.
[Authorize(AuthenticationSchemes = "Cookies")]
[AllowAnonymous]
public IActionResult Privacy() => null;
} |
Uh oh!
There was an error while loading. Please reload this page.
Description
Update the "What's new in ASP.NET Core 9.0" for .NET 9 Preview 6
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
Associated WorkItem - 273723
The text was updated successfully, but these errors were encountered: