-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Labels
6.0.0Breaking changeDocumentedThe breaking change has been published to the .NET Core docsThe breaking change has been published to the .NET Core docs
Description
Description
In RC1, the following APIs were renamed.
- The
Microsoft.AspNetCore.Builder.MinimalActionEndpointConventionBuilderclass was renamed toMicrosoft.AspNetCore.Builder.DelegateEndpointConventionBuilder.- Note: This was renamed again in RC2 to
Microsoft.AspNetCore.Builder.RouteHandlerBuilder. See [Breaking change]: Minimal API renames in RC2 #475.
- Note: This was renamed again in RC2 to
- The
Microsoft.AspNetCore.Builder.MinimalActionEndpointRouteBuilderExtensionsclass was renamed toMicrosoft.AspNetCore.Builder.DelegateEndpointRouteBuilderExtensions.- Note: This was merged with
Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensionsin RC2. See [Breaking change]: Minimal API renames in RC2 #475.
- Note: This was merged with
- The
Delegateparameter toMap,MapGet,MapPost,MapPut,MapDelete,MapMethod,MapFallbackandRequestDelegateFactory.Createwas renamed fromactiontohandler.
These changes were made in dotnet/aspnetcore#35570.
Version
.NET 6 RC1
Previous behavior
There is no behavioral change. These are just renames.
New behavior
There is no behavioral change. These are just renames.
Type of breaking change
- Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load/execute or different run-time behavior.
- Source incompatible: Source code may encounter a breaking change in behavior when targeting the new runtime/component/SDK, such as compile errors or different run-time behavior.
Reason for change
This change was made to improve the consistency of type names and remove "minimal" and "action" from the APIs.
Recommended action
It is recommended you recompile any projects built with an earlier SDK. For most projects, this should be all that is necessary.
If any of these type names or parameter names were referenced directly by name, the source should be updated to reflect the new names.
Affected APIs
Microsoft.AspNetCore.Builder.MinimalActionEndpointConventionBuilderMicrosoft.AspNetCore.Builder.MinimalActionEndpointRouteBuilderExtensions- This includes all the methods on this class having their
Delegateparameter renamed fromactiontohandler.
- This includes all the methods on this class having their
Microsoft.AspNetCore.Http.RequestDelegateFactory.Create(Delegate action, RequestDelegateFactoryOptions? options = null)
Discussion issue: dotnet/aspnetcore#37671
Metadata
Metadata
Assignees
Labels
6.0.0Breaking changeDocumentedThe breaking change has been published to the .NET Core docsThe breaking change has been published to the .NET Core docs