-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
breaking-changeIndicates a .NET Core breaking changeIndicates a .NET Core breaking change
Description
UseSignalR and UseConnections are marked obsolete
The methods UseConnections
and UseSignalR
, and the classes ConnectionsRouteBuilder
and HubRouteBuilder
are being marked obsolete in 3.0.
Version introduced
3.0
Old behavior
SignalR hub routing was configured using UseSignalR
, UseConnections
.
New behavior
The old way of configuring routing has been obsoleted and replaced with Endpoint routing.
Reason for change
We're moving middleware to the new EndpointRouting system so we're obsoleting the old way of adding middleware.
Recommended action
Replace UseSignalR
with UseEndpoints
,
Old code:
app.UseSignalR(routes =>
{
routes.MapHub<SomeHub>("/path");
});
New code:
app.UseEndpoints(endpoints =>
{
endpoints.MapHub<SomeHub>("/path");
});
Category
ASP.NET Core
Affected APIs
Microsoft.AspNetCore.Builder.IApplicationBuilder.UseSignalR
Microsoft.AspNetCore.Builder.IApplicationBuilder.UseConnections
Microsoft.AspNetCore.Http.Connections.ConnectionsRouteBuilder
Microsoft.AspNetCore.SignalR.HubRouteBuilder
Issue metadata
- Issue type: breaking-change
recenteno, rdrgox and mtttcgcg
Metadata
Metadata
Assignees
Labels
breaking-changeIndicates a .NET Core breaking changeIndicates a .NET Core breaking change