AI seeded comments from robch and then edited by stephentoub (#238)
* AI generated `///` comment updates * Fix compilation issues * Fix incorrect XML comment structure * Update all Client comments * Update all Configuration comments * Update all Messages comments * Update all Transport comments * Update all Types comments * Update all Server comments * Undo some commenting --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
07300389ee
commit
77871c5aac
1 changed files with 4017 additions and 1066 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using ModelContextProtocol.Logging;
|
||||
using ModelContextProtocol.Protocol.Messages;
|
||||
using System.Diagnostics;
|
||||
|
|
@ -19,6 +19,20 @@ internal sealed class StdioClientSessionTransport : StreamClientSessionTransport
|
|||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// For stdio-based transports, this implementation first verifies that the underlying process
|
||||
/// is still running before attempting to send the message. If the process has exited or cannot
|
||||
/// be accessed, a <see cref="McpTransportException"/> is thrown with details about the failure.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// After verifying the process state, this method delegates to the base class implementation
|
||||
/// to handle the actual message serialization and transmission to the process's standard input stream.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
/// <exception cref="McpTransportException">
|
||||
/// Thrown when the underlying process has exited or cannot be accessed.
|
||||
/// </exception>
|
||||
public override async Task SendMessageAsync(IJsonRpcMessage message, CancellationToken cancellationToken = default)
|
||||
{
|
||||
Exception? processException = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue