Method Dispose
Dispose()
Releases all resources used by the MCP client.
public void Dispose()
Remarks
This method disposes of managed resources including the initialization response document and, if the client owns the HTTP client, the HTTP client itself. After disposal, the client cannot be reused.
If you need to temporarily disconnect and reconnect, use ShutdownAsync(CancellationToken) instead, which allows the client to be reused.
It's safe to call this method multiple times.