1 write to Client
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitHost.cs (1)
71
Client
= client ?? throw new ArgumentNullException(nameof(client));
32 references to Client
Microsoft.AspNetCore.Components.Server (32)
Circuits\CircuitFactory.cs (1)
134
CreatedCircuit(logger, circuitHost.CircuitId.Id, circuitHost.
Client
.ConnectionId);
Circuits\CircuitHost.cs (22)
197
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex), ex);
295
Log.ConnectionUp(_logger, CircuitId,
Client
.ConnectionId);
331
Log.ConnectionDown(_logger, CircuitId,
Client
.ConnectionId);
404
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(e, $"Failed to complete render batch '{renderId}'."));
430
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Interop call failed."));
464
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Invalid interop arguments."));
489
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Invalid byte array."));
513
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Invalid chunk supplied to stream."));
533
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Unable to send .NET stream."));
563
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Unable to locate .NET stream."));
600
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(nex, "Location change failed."));
608
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, $"Location change to '{uri}' failed."));
626
await
Client
.SendAsync("JS.EndLocationChanging", callId, shouldContinueNavigation);
633
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, $"Location change to '{uri}' failed."));
733
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(exception), exception);
754
if (!
Client
.Connected)
861
await
Client
.SendAsync("JS.EndUpdateRootComponents", batchId);
870
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex), ex);
986
if (!
Client
.Connected)
998
if (_disposed || !
Client
.Connected)
1015
await
Client
.SendCoreAsync("JS.RequestPause", Array.Empty<object>(), cancellationToken);
1036
var succeeded = await
Client
.InvokeAsync<bool>(
Circuits\CircuitRegistry.cs (9)
125
if (!string.Equals(circuitHost.
Client
.ConnectionId, connectionId, StringComparison.Ordinal))
127
Log.CircuitConnectedToDifferentConnection(_logger, circuitId, circuitHost.
Client
.ConnectionId);
138
circuitHost.
Client
.SetDisconnected();
239
connectedCircuitHost.
Client
.Transfer(clientProxy, connectionId);
254
disconnectedEntry.CircuitHost.
Client
.Transfer(clientProxy, connectionId);
314
circuitHost.
Client
.SetDisconnected();
350
if (!string.Equals(circuitHost.
Client
.ConnectionId, connectionId, StringComparison.Ordinal))
353
Log.CircuitConnectedToDifferentConnection(_logger, circuitId, circuitHost.
Client
.ConnectionId);
392
circuitHost.
Client
.SetDisconnected();