Skip to content

Commit ce1b343

Browse files
committed
minor update.
1 parent cc93458 commit ce1b343

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

samples/BlazorChat/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ From Visual Studio 2019 version 16.2.0, Azure SignalR Service is build-in web ap
259259
```
260260
261261
6. Update `NavMenu.razor` to insert a entry menu for the chat room under `NavMenuCssClass` like rest.
262+
262263
```razor
263264
<li class="nav-item px-3">
264265
<NavLink class="nav-link" href="chatroom">
@@ -267,7 +268,7 @@ From Visual Studio 2019 version 16.2.0, Azure SignalR Service is build-in web ap
267268
</li>
268269
```
269270

270-
7. Update `site.css` to optimize for chart area bubble views.
271+
7. Update `site.css` to optimize for chart area bubble views. Append below code in the end.
271272

272273
```css
273274
/* improved for chat text box */
@@ -335,11 +336,11 @@ From Visual Studio 2019 version 16.2.0, Azure SignalR Service is build-in web ap
335336
}
336337
```
337338

338-
1. Click `F5` to run the app. You'll be able to chat like below.
339+
8. Click `F5` to run the app. You'll be able to chat like below.
339340

340341
![blazorchat](../../docs/images/blazorchat.gif)
341342

342-
## Publish to Azure App Service and migration to Azure SignalR Service
343+
## Publish to Azure App Service and migrate to Azure SignalR Service
343344

344345
So far, the Blazor App is working on local SignalR and when deploy to Azure App Service, it's suggested to use [Azure SignalR Service](https://docs.microsoft.com/en-us/aspnet/core/signalr/scale?view=aspnetcore-3.1#azure-signalr-service) which allows for scaling up a Blazor Server app to a large number of concurrent SignalR connections. In addition, the SignalR service's global reach and high-performance data centers significantly aid in reducing latency due to geography.
345346

@@ -412,6 +413,7 @@ From Visual Studio 2019 version 16.2.0, Azure SignalR Service is build-in web ap
412413
> "Azure": {
413414
> "SignalR": {
414415
> "Enabled": true,
416+
> "ServerStickyMode": "Required",
415417
> "ConnectionString": <your-connection-string>
416418
> }
417419
> }

samples/BlazorChat/appsettings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"AllowedHosts": "*",
1010
"Azure": {
1111
"SignalR": {
12-
"Enabled": "true"
12+
"Enabled": "true",
13+
"ServerStickyMode": "Required"
1314
}
1415
}
1516
}

0 commit comments

Comments
 (0)