Reputation: 53
I have a SignalR Hub (.NET 8
) and in order to work properly with proxies on the client I need to set it's name to a lower-case using something like [HubName("hubname")]
in previous versions. I can't find such attribute in Microsoft.AspNetCore.SignalR
. Are there any alternatives to this in .NET 8?
The attribute is defined in Microsoft.AspNet.SignalR.Hubs
As shown here.
Is it possible to use this namespace and attribute in .net 8 or will it break?
Upvotes: 2
Views: 404
Reputation: 79
Use the following way to map hubs in .NET 8
app.MapHub<MyHub>("/myHubRoute");
Upvotes: 4