Click here to Skip to main content
15,445,560 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I created a signalr service on Azure. I'm trying to connect it from C# client.
Below is the code sample i found, something i don't understand is when
Azure SignalR already used(app.UseAzureSignalR), why map it to a local Hub(Chat)?
will the Chat.cs be hosted on azure?
startup.cs
app.UseAzureSignalR(routes =>
{
   routes.MapHub<Chat>("/chat");
});

Chat.cs
public class Chat : Hub
{

}


What I have tried:

In this case, what does Azure SignalR do?
Posted
Updated 29-May-19 21:57pm
v5

1 solution

2 problems:

1) I "found"
2) I don't understand

Quote:
Below is the code sample i found, something i don't understand


Quickstart to learn how to use Azure SignalR Service | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900