Clean up namespaces (#410)
No meaningful code changes, just lots of namespace shuffling to have fewer namespaces and to put things in better namespaces.
This commit is contained in:
parent
c11c634945
commit
106ab8064f
1 changed files with 491 additions and 668 deletions
|
|
@ -1,11 +1,6 @@
|
|||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using ModelContextProtocol.Protocol.Messages;
|
||||
using ModelContextProtocol.Protocol.Transport;
|
||||
using ModelContextProtocol.Protocol.Types;
|
||||
using ModelContextProtocol.Shared;
|
||||
using ModelContextProtocol.Utils;
|
||||
using ModelContextProtocol.Utils.Json;
|
||||
using ModelContextProtocol.Protocol;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text.Json.Serialization.Metadata;
|
||||
|
||||
|
|
@ -558,12 +553,12 @@ internal sealed class McpServer : McpEndpoint, IMcpServer
|
|||
internal static LoggingLevel ToLoggingLevel(LogLevel level) =>
|
||||
level switch
|
||||
{
|
||||
LogLevel.Trace => Protocol.Types.LoggingLevel.Debug,
|
||||
LogLevel.Debug => Protocol.Types.LoggingLevel.Debug,
|
||||
LogLevel.Information => Protocol.Types.LoggingLevel.Info,
|
||||
LogLevel.Warning => Protocol.Types.LoggingLevel.Warning,
|
||||
LogLevel.Error => Protocol.Types.LoggingLevel.Error,
|
||||
LogLevel.Critical => Protocol.Types.LoggingLevel.Critical,
|
||||
_ => Protocol.Types.LoggingLevel.Emergency,
|
||||
LogLevel.Trace => Protocol.LoggingLevel.Debug,
|
||||
LogLevel.Debug => Protocol.LoggingLevel.Debug,
|
||||
LogLevel.Information => Protocol.LoggingLevel.Info,
|
||||
LogLevel.Warning => Protocol.LoggingLevel.Warning,
|
||||
LogLevel.Error => Protocol.LoggingLevel.Error,
|
||||
LogLevel.Critical => Protocol.LoggingLevel.Critical,
|
||||
_ => Protocol.LoggingLevel.Emergency,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue