-Using the following approach, the fact that the code sends the `RequestCircuitPauseAsync` asynchronously doesn't mean that upon returning the value that the client is already paused. It's only a request to pause that client, which the client can defer. That's why the code includes `_shutdownTcs`, which is set when there aren't any circuits connected (all of them are successfully shut down). In case a client requests a deferral longer than server allows, a period longer than `ShutdownTimeout`, that client doesn't have their state persisted and experiences a normal connection loss.
0 commit comments