44 references to CircuitHost
Microsoft.AspNetCore.Components.Server (44)
Circuits\Circuit.cs (2)
11
private readonly
CircuitHost
_circuitHost;
13
internal Circuit(
CircuitHost
circuitHost)
Circuits\CircuitFactory.cs (4)
37
public async ValueTask<
CircuitHost
> CreateCircuitHostAsync(
97
var
circuitHost = new CircuitHost(
107
_loggerFactory.CreateLogger<
CircuitHost
>());
131
internal static void CreatedCircuit(ILogger logger,
CircuitHost
circuitHost) =>
Circuits\CircuitHandle.cs (1)
12
public
CircuitHost
CircuitHost { get; set; }
Circuits\CircuitHandleRegistry.cs (2)
18
public
CircuitHost
GetCircuit(IDictionary<object, object?> circuitHandles, object circuitKey)
28
public void SetCircuit(IDictionary<object, object?> circuitHandles, object circuitKey,
CircuitHost
circuitHost)
Circuits\CircuitRegistry.cs (18)
15
/// <see cref="CircuitRegistry"/> manages the lifetime of a <see cref="
CircuitHost
"/>.
18
/// Hosts start off by being registered using <see cref="
CircuitHost
"/>.
54
ConnectedCircuits = new ConcurrentDictionary<CircuitId,
CircuitHost
>();
67
internal ConcurrentDictionary<CircuitId,
CircuitHost
> ConnectedCircuits { get; }
72
/// Registers an active <see cref="
CircuitHost
"/> with the register.
74
public void Register(
CircuitHost
circuitHost)
87
public virtual Task DisconnectAsync(
CircuitHost
circuitHost, string connectionId)
111
protected virtual bool DisconnectCore(
CircuitHost
circuitHost, string connectionId)
143
public void RegisterDisconnectedCircuit(
CircuitHost
circuitHost)
169
public virtual async Task<
CircuitHost
> ConnectAsync(CircuitId circuitId, IClientProxy clientProxy, string connectionId, CancellationToken cancellationToken)
173
CircuitHost
circuitHost;
228
protected virtual (
CircuitHost
circuitHost, bool previouslyConnected) ConnectCore(CircuitId circuitId, IClientProxy clientProxy, string connectionId)
230
if (ConnectedCircuits.TryGetValue(circuitId, out
var
connectedCircuitHost))
311
CircuitHost
circuitHost;
338
var
circuitHost = (
CircuitHost
)sender;
354
public DisconnectedCircuitEntry(
CircuitHost
circuitHost, CancellationTokenSource tokenSource)
360
public
CircuitHost
CircuitHost { get; }
Circuits\ICircuitFactory.cs (1)
10
ValueTask<
CircuitHost
> CreateCircuitHostAsync(
Circuits\ICircuitHandleRegistry.cs (2)
10
CircuitHost
GetCircuit(IDictionary<object, object?> circuitHandles, object circuitKey);
12
void SetCircuit(IDictionary<object, object?> circuitHandles, object circuitKey,
CircuitHost
circuitHost);
ComponentHub.cs (14)
74
var
circuitHost = _circuitHandleRegistry.GetCircuit(Context.Items, CircuitKey);
85
var
circuitHost = _circuitHandleRegistry.GetCircuit(Context.Items, CircuitKey);
166
var
circuitHost = await GetActiveCircuitAsync();
202
var
circuitHost = await _circuitRegistry.ConnectAsync(
222
var
circuitHost = await GetActiveCircuitAsync();
233
var
circuitHost = await GetActiveCircuitAsync();
244
var
circuitHost = await GetActiveCircuitAsync();
255
var
circuitHost = await GetActiveCircuitAsync();
271
var
circuitHost = await GetActiveCircuitAsync();
306
var
circuitHost = await GetActiveCircuitAsync();
318
var
circuitHost = await GetActiveCircuitAsync();
329
var
circuitHost = await GetActiveCircuitAsync();
344
private async ValueTask<
CircuitHost
> GetActiveCircuitAsync([CallerMemberName] string callSite = "")
347
var
circuitHost = handle?.CircuitHost;