1 write to Text
Aspire.Dashboard (1)
Model\TextVisualizerViewModel.cs (1)
25Text = text;
14 references to Text
Aspire.Dashboard (10)
Model\TextVisualizerViewModel.cs (10)
26Lines = GetLines(Text, DashboardUIHelpers.PlaintextFormat); 30ChangeFormattedText(knownFormat, Text); 32else if (TryFormatJson(Text, out var formattedJson)) 34ChangeFormattedText(DashboardUIHelpers.JsonFormat, indentText ? formattedJson : Text); 36else if (TryFormatXml(Text, out var formattedXml)) 38ChangeFormattedText(DashboardUIHelpers.XmlFormat, indentText ? formattedXml : Text); 42ChangeFormattedText(fallbackFormat ?? DashboardUIHelpers.PlaintextFormat, Text); 261if (TryFormatXml(Text, out var formattedXml)) 268if (TryFormatJson(Text, out var formattedJson)) 275ChangeFormattedText(DashboardUIHelpers.PlaintextFormat, Text);
Aspire.Dashboard.Tests (4)
Model\TextVisualizerViewModelTests.cs (4)
18Assert.Equal("Just some text.", vm.Text); 29Assert.Equal(" <xml><text>Just some text</text></xml>", vm.Text); 45Assert.Equal(" <?xml version=\"1.0\" encoding=\"utf-16\"?><xml><text>Just some text</text></xml>", vm.Text); 62Assert.Equal(" [true]", vm.Text);