Enable netfx testing. (#588)
* Enable netfx testing. * Skip impacted tests and re-enable netfx testing. * Remove redundant comment. * Remove unnecessary project configuration. * Simplify test server copying.
This commit is contained in:
parent
c0440760ac
commit
aa75f6f37e
2 changed files with 1940 additions and 53 deletions
|
|
@ -17,7 +17,7 @@ public class McpServerPrimitiveCollection<T> : ICollection<T>, IReadOnlyCollecti
|
|||
/// </summary>
|
||||
public McpServerPrimitiveCollection(IEqualityComparer<string>? keyComparer = null)
|
||||
{
|
||||
_primitives = new(keyComparer);
|
||||
_primitives = new(keyComparer ?? EqualityComparer<string>.Default);
|
||||
}
|
||||
|
||||
/// <summary>Occurs when the collection is changed.</summary>
|
||||
|
|
|
|||
|
|
@ -46,7 +46,11 @@ public class StreamServerTransport : TransportBase
|
|||
|
||||
_logger = loggerFactory?.CreateLogger(GetType()) ?? NullLogger.Instance;
|
||||
|
||||
#if NET
|
||||
_inputReader = new StreamReader(inputStream, Encoding.UTF8);
|
||||
#else
|
||||
_inputReader = new CancellableStreamReader(inputStream, Encoding.UTF8);
|
||||
#endif
|
||||
_outputStream = outputStream;
|
||||
|
||||
SetConnected();
|
||||
|
|
|
|||
Loading…
Reference in a new issue