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