1 write to State
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
49
State
= state,
30 references to State
Aspire.Dashboard.Tests (30)
Integration\FrontendBrowserTokenAuthTests.cs (13)
174
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
178
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
180
var uri = new Uri((string)GetValue(w.
State
, "DashboardUri")!);
185
Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
187
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
192
Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
194
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
199
Assert.Equal("OTLP server is unsecured. Untrusted apps can send telemetry to the dashboard. For more information, visit https://go.microsoft.com/fwlink/?linkid=2267030", GetValue(w.
State
, "{OriginalFormat}"));
204
Assert.Equal("Login to the dashboard at {DashboardLoginUrl}", GetValue(w.
State
, "{OriginalFormat}"));
206
var uri = new Uri((string)GetValue(w.
State
, "DashboardLoginUrl")!, UriKind.Absolute);
234
var loginLinkLog = l.Single(w => "Login to the dashboard at {DashboardLoginUrl}" == (string?)GetValue(w.
State
, "{OriginalFormat}"));
236
var uri = new Uri((string)GetValue(loginLinkLog.
State
, "DashboardLoginUrl")!, UriKind.Absolute);
261
Assert.Single(l.Where(w => "Login to the dashboard at {DashboardLoginUrl}. The URL may need changes depending on how network access to the container is configured." == (string?)GetValue(w.
State
, "{OriginalFormat}")));
Integration\StartupTests.cs (16)
568
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
572
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
574
var uri = new Uri((string)GetValue(w.
State
, "DashboardUri")!);
579
Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
581
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
586
Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
588
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
593
Assert.Equal("OTLP server is unsecured. Untrusted apps can send telemetry to the dashboard. For more information, visit https://go.microsoft.com/fwlink/?linkid=2267030", GetValue(w.
State
, "{OriginalFormat}"));
648
Assert.Equal("Aspire version: {Version}", GetValue(w.
State
, "{OriginalFormat}"));
652
Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.
State
, "{OriginalFormat}"));
654
var uri = new Uri((string)GetValue(w.
State
, "DashboardUri")!);
661
Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
663
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
668
Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.
State
, "{OriginalFormat}"));
670
var uri = new Uri((string)GetValue(w.
State
, "OtlpEndpointUri")!);
675
Assert.Equal("OTLP server is unsecured. Untrusted apps can send telemetry to the dashboard. For more information, visit https://go.microsoft.com/fwlink/?linkid=2267030", GetValue(w.
State
, "{OriginalFormat}"));
tests\Shared\Logging\WriteContext.cs (1)
26
return Formatter?.Invoke(
State
, Exception);