10 references to OnCircuitClosedAsync
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitHandler.cs (1)
20
/// <see cref="
OnCircuitClosedAsync
(Circuit, CancellationToken)"/> is invoked prior to the server evicting the circuit to the client.
Circuits\CircuitHost.cs (1)
328
await circuitHandler.
OnCircuitClosedAsync
(Circuit, cancellationToken);
Microsoft.AspNetCore.Components.Server.Tests (8)
Circuits\CircuitHostTest.cs (3)
76
.Setup(h => h.
OnCircuitClosedAsync
(It.IsAny<Circuit>(), It.IsAny<CancellationToken>()))
314
.Setup(h => h.
OnCircuitClosedAsync
(It.IsAny<Circuit>(), cancellationToken))
320
.Setup(h => h.
OnCircuitClosedAsync
(It.IsAny<Circuit>(), cancellationToken))
Circuits\CircuitRegistryTest.cs (5)
102
handler.Verify(v => v.
OnCircuitClosedAsync
(It.IsAny<Circuit>(), It.IsAny<CancellationToken>()), Times.Never());
126
handler.Verify(v => v.
OnCircuitClosedAsync
(It.IsAny<Circuit>(), It.IsAny<CancellationToken>()), Times.Never());
185
handler.Verify(v => v.
OnCircuitClosedAsync
(It.IsAny<Circuit>(), It.IsAny<CancellationToken>()), Times.Never());
204
handler.Verify(v => v.
OnCircuitClosedAsync
(It.IsAny<Circuit>(), It.IsAny<CancellationToken>()), Times.Never());
222
handler.Verify(v => v.
OnCircuitClosedAsync
(It.IsAny<Circuit>(), It.IsAny<CancellationToken>()), Times.Never());