You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotnet: remove DisconnectAsync, keep only DisposeAsync
Address review feedback from SteveSandersonMS: for .NET, the
standard IAsyncDisposable pattern (DisposeAsync) is sufficient
on its own without a duplicate DisconnectAsync method.
Moves the disconnect implementation directly into DisposeAsync
and removes the separate DisconnectAsync method. Updates all
references in Client.cs and README.md accordingly.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Disconnect the session and release in-memory resources. Session data on disk is preserved — the conversation can be resumed later via `ResumeSessionAsync()`. To permanently delete session data, use `client.DeleteSessionAsync()`.
223
-
224
220
##### `DisposeAsync(): ValueTask`
225
221
226
-
Calls `DisconnectAsync()`. Enables the `await using` pattern for automatic cleanup:
222
+
Close the session and release in-memory resources. Session data on disk is preserved — the conversation can be resumed later via `ResumeSessionAsync()`. To permanently delete session data, use `client.DeleteSessionAsync()`.
0 commit comments