1 write to State
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
49State = state,
30 references to State
Aspire.Dashboard.Tests (30)
Integration\FrontendBrowserTokenAuthTests.cs (13)
174Assert.Equal("Aspire version: {Version}", GetValue(w.State, "{OriginalFormat}")); 178Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.State, "{OriginalFormat}")); 180var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 185Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 187var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 192Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 194var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 199Assert.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}")); 204Assert.Equal("Login to the dashboard at {DashboardLoginUrl}", GetValue(w.State, "{OriginalFormat}")); 206var uri = new Uri((string)GetValue(w.State, "DashboardLoginUrl")!, UriKind.Absolute); 234var loginLinkLog = l.Single(w => "Login to the dashboard at {DashboardLoginUrl}" == (string?)GetValue(w.State, "{OriginalFormat}")); 236var uri = new Uri((string)GetValue(loginLinkLog.State, "DashboardLoginUrl")!, UriKind.Absolute); 261Assert.Single(l, w => (string?)GetValue(w.State, "{OriginalFormat}") == "Login to the dashboard at {DashboardLoginUrl} . The URL may need changes depending on how network access to the container is configured.");
Integration\StartupTests.cs (16)
608Assert.Equal("Aspire version: {Version}", GetValue(w.State, "{OriginalFormat}")); 612Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.State, "{OriginalFormat}")); 614var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 619Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 621var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 626Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 628var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 633Assert.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}")); 688Assert.Equal("Aspire version: {Version}", GetValue(w.State, "{OriginalFormat}")); 692Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.State, "{OriginalFormat}")); 694var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 701Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 703var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 708Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 710var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 715Assert.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)
26return Formatter?.Invoke(State, Exception);