File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ From Visual Studio 2019 version 16.2.0, Azure SignalR Service is build-in web ap
4141
4242 namespace BlazorChat
4343 {
44- public class ChatHub : Hub
44+ public class BlazorChatSampleHub : Hub
4545 {
4646 public const string HubUrl = " /chat" ;
4747
@@ -72,7 +72,7 @@ From Visual Studio 2019 version 16.2.0, Azure SignalR Service is build-in web ap
7272 {
7373 endpoints .MapBlazorHub ();
7474 endpoints .MapFallbackToPage (" /_Host" );
75- endpoints .MapHub <ChatHub >( ChatHub .HubUrl );
75+ endpoints .MapHub <BlazorChatSampleHub >( BlazorChatSampleHub .HubUrl );
7676 });
7777 ```
7878
@@ -131,7 +131,7 @@ From Visual Studio 2019 version 16.2.0, Azure SignalR Service is build-in web ap
131131 // Create the chat client
132132 string baseUrl = navigationManager.BaseUri;
133133
134- _hubUrl = baseUrl.TrimEnd('/') + ChatHub .HubUrl;
134+ _hubUrl = baseUrl.TrimEnd('/') + BlazorChatSampleHub .HubUrl;
135135
136136 _hubConnection = new HubConnectionBuilder()
137137 .WithUrl(_hubUrl)
You can’t perform that action at this time.
0 commit comments