Property IsConnected
IsConnected
Whether the session is still usable: false once its channel or the connection under it ended or failed (the server closed it, a missed keep-alive, a broken protocol message, a request that could not be sent within OperationTimeout whether or not its caller still waited, a send that failed), or the client was disposed. A request that failed because the session ended finds it false already. Every request fails from then on; open a new session. A request that fails on its own (an error status, or a reply that timed out) leaves it true.
public bool IsConnected { get; }