1 instantiation of WriteContext
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
45
_sink.Write(new
WriteContext
()
19 references to WriteContext
Aspire.Dashboard.Tests (19)
Integration\FrontendBrowserTokenAuthTests.cs (2)
101
var
log = testSink.Writes.Single(s => s.LoggerName == typeof(FrontendCompositeAuthenticationHandler).FullName && s.EventId.Name == "AuthenticationSchemeNotAuthenticatedWithFailure");
235
var
loginLinkLog = l.Single(w => "Login to the dashboard at {DashboardLoginUrl}" == (string?)GetValue(w.State, "{OriginalFormat}"));
Integration\FrontendOpenIdConnectAuthTests.cs (1)
90
var
log = testSink.Writes.Single(s => s.LoggerName == typeof(FrontendCompositeAuthenticationHandler).FullName && s.EventId.Name == "AuthenticationSchemeNotAuthenticatedWithFailure");
TelemetryRepositoryTests\OtlpHelpersTests.cs (2)
438
var
w = Assert.Single(testSink.Writes);
491
var
w = Assert.Single(testSink.Writes);
TelemetryRepositoryTests\TraceTests.cs (1)
146
var
write = Assert.Single(testSink.Writes);
tests\Shared\Logging\ITestSink.cs (4)
10
event Action<
WriteContext
> MessageLogged;
14
Func<
WriteContext
, bool>? WriteEnabled { get; set; }
20
IProducerConsumerCollection<
WriteContext
> Writes { get; set; }
22
void Write(
WriteContext
context);
tests\Shared\Logging\TestSink.cs (9)
11
private ConcurrentQueue<
WriteContext
> _writes;
14
Func<
WriteContext
, bool>? writeEnabled = null,
21
_writes = new ConcurrentQueue<
WriteContext
>();
24
public Func<
WriteContext
, bool>? WriteEnabled { get; set; }
30
public IProducerConsumerCollection<
WriteContext
> Writes { get => _writes; set => _writes = new ConcurrentQueue<
WriteContext
>(value); }
32
public event Action<
WriteContext
>? MessageLogged;
36
public void Write(
WriteContext
context)
54
public static bool EnableWithTypeName<T>(
WriteContext
context)