1 instantiation of WriteContext
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
45_sink.Write(new WriteContext()
20 references to WriteContext
Aspire.Hosting.RemoteHost.Tests (20)
ExternalCapabilityRegistryTests.cs (1)
171var diagnostic = Assert.Single(sink.Writes, write => write.LogLevel == LogLevel.Error);
tests\Shared\Logging\ITestSink.cs (4)
10event Action<WriteContext> MessageLogged; 14Func<WriteContext, bool>? WriteEnabled { get; set; } 20IProducerConsumerCollection<WriteContext> Writes { get; set; } 22void Write(WriteContext context);
tests\Shared\Logging\LogTestHelpers.cs (2)
17public static object? GetValue(WriteContext context, string key) 25/// <param name="state">The log state object, typically from <see cref="WriteContext.State"/>.</param>
tests\Shared\Logging\TestSink.cs (9)
11private ConcurrentQueue<WriteContext> _writes; 14Func<WriteContext, bool>? writeEnabled = null, 21_writes = new ConcurrentQueue<WriteContext>(); 24public Func<WriteContext, bool>? WriteEnabled { get; set; } 30public IProducerConsumerCollection<WriteContext> Writes { get => _writes; set => _writes = new ConcurrentQueue<WriteContext>(value); } 32public event Action<WriteContext>? MessageLogged; 36public void Write(WriteContext context) 54public static bool EnableWithTypeName<T>(WriteContext context)
tests\Shared\Processes\ChildProcessTests.cs (2)
322var entry = Assert.Single(sink.Writes, entry => entry.Exception?.Message == "test signal failure"); 423var entry = Assert.Single(sink.Writes, entry => ReferenceEquals(entry.Exception, shutdownFailure));
tests\Shared\Processes\ProcessSupervisorLoggerTests.cs (1)
54var entry = Assert.Single(sink.Writes);
tests\Shared\Processes\ProcessSupervisorTests.cs (1)
87var exit = Assert.Single(sink.Writes, entry => entry.Message?.Contains("Supervised command", StringComparison.Ordinal) == true);