Skip to content

Commit 29370f9

Browse files
dev-masihguardrex
authored andcommitted
components reconnect status failed is renamed (dotnet#14759)
1 parent 31ae19f commit 29370f9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

aspnetcore/blazor/hosting-models.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Understand Blazor WebAssembly and Blazor Server hosting models.
55
monikerRange: '>= aspnetcore-3.0'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 09/23/2019
8+
ms.date: 10/02/2019
99
uid: blazor/hosting-models
1010
---
1111
# ASP.NET Core Blazor hosting models
@@ -129,9 +129,12 @@ Blazor Server apps require an active SignalR connection to the server. If the co
129129

130130
When the client detects that the connection has been lost, a default UI is displayed to the user while the client attempts to reconnect. If reconnection fails, the user is provided the option to retry. To customize the UI, define an element with `components-reconnect-modal` as its `id` in the *_Host.cshtml* Razor page. The client updates this element with one of the following CSS classes based on the state of the connection:
131131

132-
* `components-reconnect-show` – Show the UI to indicate the connection was lost and the client is attempting to reconnect.
132+
* `components-reconnect-show` – Show the UI to indicate a lost connection and the client is attempting to reconnect.
133133
* `components-reconnect-hide` – The client has an active connection, hide the UI.
134-
* `components-reconnect-failed` – Reconnection failed. To attempt reconnection again, call `window.Blazor.reconnect()`.
134+
* `components-reconnect-failed` – Reconnection failed, probably due to a network failure. To attempt reconnection, call `window.Blazor.reconnect()`.
135+
* `components-reconnect-rejected` – Reconnection rejected. The server was reached but refused the connection, and the user's state on the server is gone. To attempt reconnection, call `window.Blazor.reconnect()`. This connection state may result when:
136+
* A crash in the circuit (server-side code) occurs.
137+
* The client is disconnected long enough for the server to drop the user's state. Instances of components that the user was interacting with are disposed.
135138

136139
### Stateful reconnection after prerendering
137140

0 commit comments

Comments
 (0)