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)
189
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex), ex);
287
Log.ConnectionUp(_logger, CircuitId,
Client
.ConnectionId);
323
Log.ConnectionDown(_logger, CircuitId,
Client
.ConnectionId);
396
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(e, $"Failed to complete render batch '{renderId}'."));
422
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Interop call failed."));
456
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Invalid interop arguments."));
481
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Invalid byte array."));
505
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Invalid chunk supplied to stream."));
525
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Unable to send .NET stream."));
555
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, "Unable to locate .NET stream."));
592
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(nex, "Location change failed."));
600
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, $"Location change to '{uri}' failed."));
618
await
Client
.SendAsync("JS.EndLocationChanging", callId, shouldContinueNavigation);
625
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex, $"Location change to '{uri}' failed."));
722
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(exception), exception);
743
if (!
Client
.Connected)
846
await
Client
.SendAsync("JS.EndUpdateRootComponents", batchId);
855
await TryNotifyClientErrorAsync(
Client
, GetClientErrorMessage(ex), ex);
966
if (!
Client
.Connected)
978
if (_disposed || !
Client
.Connected)
995
await
Client
.SendCoreAsync("JS.RequestPause", Array.Empty<object>(), cancellationToken);
1016
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();