40 references to AgentMessageSeverity
Microsoft.Extensions.DotNetDeltaApplier (35)
AgentReporter.cs (4)
13private readonly List<(string message, AgentMessageSeverity severity)> _log = []; 15public void Report(string message, AgentMessageSeverity severity) 20public IReadOnlyCollection<(string message, AgentMessageSeverity severity)> GetAndClearLogEntries(ResponseLoggingLevel level) 25? _log.Where(static entry => entry.severity != AgentMessageSeverity.Verbose)
HotReloadAgent.cs (12)
70Reporter.Report($"Type not found: {MetadataUpdaterTypeName}", AgentMessageSeverity.Error); 77Reporter.Report($"{MetadataUpdaterTypeName}.{ApplyUpdateMethodName} not found.", AgentMessageSeverity.Error); 86Reporter.Report($"{MetadataUpdaterTypeName}.{GetCapabilitiesMethodName} not found.", AgentMessageSeverity.Error); 96Reporter.Report($"Error retrieving capabilities: {e.Message}", AgentMessageSeverity.Error); 141Reporter.Report($"Applying updates to module {update.ModuleId}.", AgentMessageSeverity.Verbose); 162Reporter.Report("Updates applied.", AgentMessageSeverity.Verbose); 192Reporter.Report($"Failed to install HotReloadException handler: not supported by the compiler", AgentMessageSeverity.Verbose); 212Reporter.Report($"Failed to install HotReloadException handler: {e.Message}", AgentMessageSeverity.Verbose); 216Reporter.Report($"HotReloadException handler installed.", AgentMessageSeverity.Verbose); 245Reporter.Report($"Failed to load type 0x{updatedType:X8}: {e.Message}", AgentMessageSeverity.Warning); 264Reporter.Report("Updates applied.", AgentMessageSeverity.Verbose); 268Reporter.Report(ex.ToString(), AgentMessageSeverity.Warning);
MetadataUpdateHandlerInvoker.cs (10)
34=> reporter.Report(GetHandlerDisplayString(Method), AgentMessageSeverity.Verbose); 119reporter.Report("Invoking metadata update handlers.", AgentMessageSeverity.Verbose); 125reporter.Report(e.ToString(), AgentMessageSeverity.Warning); 136reporter.Report("Invoking content update handlers.", AgentMessageSeverity.Verbose); 142reporter.Report(e.ToString(), AgentMessageSeverity.Warning); 170reporter.Report($"'{attr}' found with invalid arguments.", AgentMessageSeverity.Warning); 217AgentMessageSeverity.Warning); 256=> reporter.Report($"Exception from '{GetHandlerDisplayString(method)}': {e}", AgentMessageSeverity.Warning); 288reporter.Report($"Type '{handlerType}' has method '{method}' that does not match the required signature.", AgentMessageSeverity.Warning); 311reporter.Report($"'{assembly.FullName}' is not loaded ({e.Message})", AgentMessageSeverity.Verbose);
NamedPipeContract.cs (5)
100internal readonly struct UpdateResponse(IReadOnlyCollection<(string message, AgentMessageSeverity severity)> log, bool success) : IResponse 116public static async ValueTask<(bool success, IAsyncEnumerable<(string message, AgentMessageSeverity severity)>)> ReadAsync( 123async IAsyncEnumerable<(string message, AgentMessageSeverity severity)> ReadLogAsync([EnumeratorCancellation] CancellationToken cancellationToken) 130var severity = (AgentMessageSeverity)await stream.ReadByteAsync(cancellationToken);
PipeListener.cs (4)
94agent.Reporter.Report("Writing capabilities: " + agent.Capabilities, AgentMessageSeverity.Verbose); 148agent.Reporter.Report($"The runtime failed to applying the change: {e.Message}", AgentMessageSeverity.Error); 149agent.Reporter.Report("Further changes won't be applied to this process.", AgentMessageSeverity.Warning); 170agent.Reporter.Report($"Failed to apply static asset update: {e.Message}", AgentMessageSeverity.Error);
Microsoft.Extensions.DotNetDeltaApplier.Tests (5)
HotReloadAgentTest.cs (1)
162Assert.Equal(AgentMessageSeverity.Warning, logEntry.severity);
HotReloadClient.cs (3)
90public static void ReportLogEntry(ILogger logger, string message, AgentMessageSeverity severity) 94AgentMessageSeverity.Error => LogLevel.Error, 95AgentMessageSeverity.Warning => LogLevel.Warning,
WebAssemblyHotReloadClient.cs (1)
172ReportLogEntry(logger, entry.Message, (AgentMessageSeverity)entry.Severity);