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,11 +1,16 @@
|
|||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using ModelContextProtocol.Utils;
|
||||
|
||||
namespace ModelContextProtocol.Protocol.Transport;
|
||||
|
||||
/// <summary>
|
||||
/// Provides a client MCP transport implemented around a pair of input/output streams.
|
||||
/// Provides an <see cref="IClientTransport"/> implemented around a pair of input/output streams.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This transport is useful for scenarios where you already have established streams for communication,
|
||||
/// such as custom network protocols, pipe connections, or for testing purposes. It works with any
|
||||
/// readable and writable streams.
|
||||
/// </remarks>
|
||||
public sealed class StreamClientTransport : IClientTransport
|
||||
{
|
||||
private readonly Stream _serverInput;
|
||||
|
|
@ -36,8 +41,7 @@ public sealed class StreamClientTransport : IClientTransport
|
|||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public string Name => $"in-memory-stream";
|
||||
|
||||
public string Name => "in-memory-stream";
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task<ITransport> ConnectAsync(CancellationToken cancellationToken = default)
|
||||
|
|
|
|||
Loading…
Reference in a new issue