| File: Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Logging.g.cs | |
| Project: ..\..\..\src\Libraries\Microsoft.Extensions.Hosting.Testing\Microsoft.Extensions.Hosting.Testing.csproj (Microsoft.Extensions.Hosting.Testing) |
// <auto-generated/> #nullable enable namespace Microsoft.Extensions.Hosting.Testing { partial class HostTerminatorService { /// <summary> /// Logs "FakeHostOptions.TimeToLive set to {TimeToLive} is up, disposing the host." at "Warning" level. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] private partial void LogTimeToLiveUp(global::System.TimeSpan timeToLive) { if (!_logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) { return; } var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState; try { _ = state.ReserveTagSpace(2); state.TagArray[1] = new("{OriginalFormat}", "FakeHostOptions.TimeToLive set to {TimeToLive} is up, disposing the host."); state.TagArray[0] = new("TimeToLive", timeToLive.ToString(null, global::System.Globalization.CultureInfo.InvariantCulture)); _logger.Log( global::Microsoft.Extensions.Logging.LogLevel.Warning, new(0, nameof(LogTimeToLiveUp)), state, null, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) => { var timeToLive = s.TagArray[0].Value; #if NET return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"FakeHostOptions.TimeToLive set to {timeToLive} is up, disposing the host."); #else return global::System.FormattableString.Invariant($"FakeHostOptions.TimeToLive set to {timeToLive} is up, disposing the host."); #endif }); } finally { state.Clear(); } } /// <summary> /// Logs "Debugger is attached. The host won't be automatically disposed." at "Information" level. /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] private partial void LogDebuggerAttached() { if (!_logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Information)) { return; } var state = global::Microsoft.Extensions.Logging.LoggerMessageHelper.ThreadLocalState; try { _ = state.ReserveTagSpace(1); state.TagArray[0] = new("{OriginalFormat}", "Debugger is attached. The host won't be automatically disposed."); _logger.Log( global::Microsoft.Extensions.Logging.LogLevel.Information, new(1, nameof(LogDebuggerAttached)), state, null, [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Gen.Logging", "10.9.0.0")] static string (s, _) => { return "Debugger is attached. The host won't be automatically disposed."; }); } finally { state.Clear(); } } } }