10using System.Threading.Tasks;
11using Microsoft.AspNetCore.Components.Server.Circuits;
13namespace Csla.AspNetCore.Blazor
18 public class ActiveCircuitHandler : CircuitHandler
24 public ActiveCircuitHandler(ActiveCircuitState activeCircuitState)
26 ActiveCircuitState = activeCircuitState;
29 private ActiveCircuitState ActiveCircuitState {
get;
set; }
36 public override Task OnCircuitOpenedAsync(Circuit circuit, CancellationToken cancellationToken)
38 ActiveCircuitState.CircuitExists =
true;
39 return base.OnCircuitOpenedAsync(circuit, cancellationToken);