Skip to content
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

UseSignalR and UseConnections are marked obsolete #362

Open
BrennanConroy opened this issue Jun 3, 2019 · 0 comments
Open

UseSignalR and UseConnections are marked obsolete #362

BrennanConroy opened this issue Jun 3, 2019 · 0 comments
Labels
3.0.0 Announcements related to ASP.NET Core 3.0 Announcement Breaking change Documented The breaking change has been published to the .NET Core docs Migrated
Milestone

Comments

@BrennanConroy
Copy link
Member

BrennanConroy commented Jun 3, 2019

The methods UseConnections and UseSignalR, and the classes ConnectionsRouteBuilder and HubRouteBuilder are being marked obsolete in 3.0. And will be removed in the next major release after that.

The preferred method for using SignalR starting in 3.0 is to use Endpoint Routing. See example below.

Old code:

app.UseSignalR(routes =>
{
    routes.MapHub<SomeHub>("/path");
});

New code:

app.UseEndpoints(endpoints =>
{
    endpoints.MapHub<SomeHub>("/path");
});

See dotnet/aspnetcore#10754 for discussion.

This announcement has been migrated to dotnet/docs#14928

@BrennanConroy BrennanConroy added Announcement Breaking change 3.0.0 Announcements related to ASP.NET Core 3.0 labels Jun 3, 2019
@BrennanConroy BrennanConroy added this to the 3.0.0 milestone Jun 3, 2019
@aspnet aspnet locked and limited conversation to collaborators Jun 3, 2019
@scottaddie scottaddie added the Documented The breaking change has been published to the .NET Core docs label Dec 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.0.0 Announcements related to ASP.NET Core 3.0 Announcement Breaking change Documented The breaking change has been published to the .NET Core docs Migrated
Projects
None yet
Development

No branches or pull requests

3 participants