Add missing exception documentation for public APIs (#1339)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
Copilot 2026-02-20 23:13:03 -05:00 • committed by GitHub
commit 34d4cd7552
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1066,6 +1066,7 @@ public abstract partial class McpServer : McpSession
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests.</param>
/// <returns>A task representing the asynchronous notification operation.</returns>
/// <exception cref="ArgumentNullException"><paramref name="task"/> is <see langword="null"/>.</exception>
/// <exception cref="McpException">The notification failed or the client returned an error response.</exception>
/// <remarks>
/// <para>
/// This method sends an optional status notification to inform the client of task state changes.