AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

SignalR app.MapHub is this still accurate or should it be endspoints.MapHub?

Open jafin opened this issue 1 year ago • 1 comments

Description

[Enter feedback here] This page talks about configuring SignalR via app.MapHub<> yet other documentation suggest that is deprecated and instead use something like

app.UseEndpoints(endpoints => {
   endpoints.MapHub<T>("/notify");
}

Page URL

https://learn.microsoft.com/en-us/aspnet/core/signalr/hubs?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/signalr/hubs.md

Document ID

fb016cdc-d281-6b5b-7466-2c718e7274b4

Article author

@bradygaster

jafin avatar Feb 12 '24 04:02 jafin

other documentation suggest that is deprecated

What documentation suggests this?

Both ways are supported, in fact if you look closely they are actually the same method.

BrennanConroy avatar Feb 12 '24 17:02 BrennanConroy

Closing since the existing sample is supported.

wadepickett avatar Mar 05 '24 21:03 wadepickett