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)
175Assert.Equal("Aspire version: {Version}", GetValue(w.State, "{OriginalFormat}")); 179Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.State, "{OriginalFormat}")); 181var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 186Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 188var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 193Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 195var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 200Assert.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}")); 205Assert.Equal("Login to the dashboard at {DashboardLoginUrl}", GetValue(w.State, "{OriginalFormat}")); 207var uri = new Uri((string)GetValue(w.State, "DashboardLoginUrl")!, UriKind.Absolute); 235var loginLinkLog = l.Single(w => "Login to the dashboard at {DashboardLoginUrl}" == (string?)GetValue(w.State, "{OriginalFormat}")); 237var uri = new Uri((string)GetValue(loginLinkLog.State, "DashboardLoginUrl")!, UriKind.Absolute); 262Assert.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)
563Assert.Equal("Aspire version: {Version}", GetValue(w.State, "{OriginalFormat}")); 567Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.State, "{OriginalFormat}")); 569var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 574Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 576var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 581Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 583var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 588Assert.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}")); 643Assert.Equal("Aspire version: {Version}", GetValue(w.State, "{OriginalFormat}")); 647Assert.Equal("Now listening on: {DashboardUri}", GetValue(w.State, "{OriginalFormat}")); 649var uri = new Uri((string)GetValue(w.State, "DashboardUri")!); 656Assert.Equal("OTLP/gRPC listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 658var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 663Assert.Equal("OTLP/HTTP listening on: {OtlpEndpointUri}", GetValue(w.State, "{OriginalFormat}")); 665var uri = new Uri((string)GetValue(w.State, "OtlpEndpointUri")!); 670Assert.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);