Fix XML documentation spelling, grammar, and correctness issues across SDK (#1372)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Stephen Toub <stoub@microsoft.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
parent
0e23854781
commit
3cc4863fc1
1 changed files with 90 additions and 92 deletions
|
|
@ -17,8 +17,8 @@ namespace ModelContextProtocol;
|
|||
/// </list>
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see cref="McpSession"/> serves as the base interface for both <see cref="McpClient"/> and
|
||||
/// <see cref="McpServer"/> interfaces, providing the common functionality needed for MCP protocol
|
||||
/// <see cref="McpSession"/> serves as the base class for both <see cref="McpClient"/> and
|
||||
/// <see cref="McpServer"/>, providing the common functionality needed for MCP protocol
|
||||
/// communication. Most applications will use these more specific interfaces rather than working with
|
||||
/// <see cref="McpSession"/> directly.
|
||||
/// </para>
|
||||
|
|
@ -85,7 +85,7 @@ public abstract partial class McpSession : IAsyncDisposable
|
|||
/// <summary>Registers a handler to be invoked when a notification for the specified method is received.</summary>
|
||||
/// <param name="method">The notification method.</param>
|
||||
/// <param name="handler">The handler to be invoked.</param>
|
||||
/// <returns>An <see cref="IDisposable"/> that will remove the registered handler when disposed.</returns>
|
||||
/// <returns>An <see cref="IAsyncDisposable"/> that will remove the registered handler when disposed.</returns>
|
||||
/// <exception cref="ArgumentNullException"><paramref name="method"/> or <paramref name="handler"/> is <see langword="null"/>.</exception>
|
||||
/// <exception cref="ArgumentException"><paramref name="method"/> is empty or composed entirely of whitespace.</exception>
|
||||
public abstract IAsyncDisposable RegisterNotificationHandler(string method, Func<JsonRpcNotification, CancellationToken, ValueTask> handler);
|
||||
|
|
|
|||
Loading…
Reference in a new issue