Event Disconnected
Raised when the transport connection is unexpectedly lost.
public event EventHandler<McpTransportDisconnectedEventArgs> Disconnected
Returns
- EventHandler<McpTransportDisconnectedEventArgs>
- Raised when the transport connection is unexpectedly lost.
- Implements
Remarks
This event fires when the connection drops due to network issues, server shutdown, process termination (for stdio), or other unexpected disconnections. It does not fire when CloseAsync(CancellationToken) is called explicitly.