92 references to GetRawText
aspire (3)
Commands\Sdk\SdkExportCommand.cs (1)
247var json = export.GetRawText()
Configuration\AspireConfigFile.cs (1)
305JsonValueKind.Number => envProp.Value.GetRawText(),
Mcp\Tools\ExecuteResourceCommandTool.cs (1)
189JsonValueKind.Number => JsonValue.Create(property.Value.GetRawText()),
Aspire.Cli.Tests (8)
Mcp\ExcludeFromMcpTests.cs (1)
152Assert.Equal("[]", resource.GetProperty("waiting_for").GetRawText());
Mcp\ListResourcesToolTests.cs (7)
88Assert.Equal("[]", resource.GetProperty("waiting_for").GetRawText()); 89Assert.Equal("[]", resource.GetProperty("urls").GetRawText()); 90Assert.Equal("[]", resource.GetProperty("relationships").GetRawText()); 91Assert.Equal("{}", resource.GetProperty("commands").GetRawText()); 346await Verify(tool.GetInputSchema().GetRawText(), "json"); 565await Verify(json.RootElement[0].GetProperty("commands").GetRawText(), "json"); 1041await Verify(resource.GetProperty("commands").GetRawText(), "json");
Aspire.Dashboard (1)
Model\GenAI\GenAIItemPartViewModel.cs (1)
144jsonObject[kvp.Key] = JsonNode.Parse(kvp.Value.GetRawText());
Aspire.Deployment.EndToEnd.Tests (1)
FoundryHostedAgentDeploymentTests.cs (1)
642throw new InvalidOperationException($"MCP request failed: {error.GetRawText()}");
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
334Api = exportedMember.GetRawText()
Aspire.Hosting.DevTunnels (1)
DevTunnelCliClient.cs (1)
581output = value.GetRawText();
Aspire.Hosting.Foundry (1)
Toolbox\FoundryToolboxReadinessProbe.cs (1)
222throw new InvalidOperationException($"Toolbox MCP request failed: {error.GetRawText()}");
Aspire.Hosting.Kubernetes (3)
KubernetesEnvironmentResource.cs (3)
2122metadataNode["annotations"] = System.Text.Json.Nodes.JsonNode.Parse(annotations.GetRawText()); 2127metadataNode["labels"] = System.Text.Json.Nodes.JsonNode.Parse(labels.GetRawText()); 2141minimal["spec"] = System.Text.Json.Nodes.JsonNode.Parse(spec.GetRawText());
Aspire.Hosting.RemoteHost (2)
Ats\ExternalCapabilityRegistry.cs (2)
489result = JsonNode.Parse(je.GetRawText()); 730return JsonSerializer.Deserialize<List<ExternalCapabilityProjection>>(payload.GetRawText(), s_jsonOptions)
Aspire.Hosting.RemoteHost.Tests (6)
CodeGeneration\ApiReferenceExportTests.cs (2)
35Assert.Equal(export.GetRawText(), repeatedExport.GetRawText());
ExternalCapabilityRegistryTests.cs (4)
103var payload = JsonNode.Parse(CreateCapabilities("test.external/value").GetRawText())!.AsObject(); 148var payload = JsonNode.Parse(CreateCapabilities("test.external/valid", "test.external/invalid").GetRawText())!.AsObject(); 246var payload = JsonNode.Parse(CreateCapabilities("test.external/cancel").GetRawText())!.AsObject(); 554var payload = JsonNode.Parse(CreateCapabilities("test.external/value").GetRawText())!.AsObject();
Aspire.Hosting.Tests (3)
Backchannel\BackchannelContractTests.cs (3)
386expectedJson.GetRawText() == actualJson.GetRawText(); 412JsonElement json => json.GetRawText(),
Infrastructure.Tests (9)
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (2)
669entries = JsonSerializer.Deserialize<ExpandedMatrixEntry[]>(include.GetRawText(), new JsonSerializerOptions 676var singleEntry = JsonSerializer.Deserialize<ExpandedMatrixEntry>(include.GetRawText(), new JsonSerializerOptions
PowerShellScripts\SplitTestMatrixByDepsTests.cs (2)
303entries = JsonSerializer.Deserialize<ExpandedMatrixEntry[]>(include.GetRawText(), new JsonSerializerOptions 310var singleEntry = JsonSerializer.Deserialize<ExpandedMatrixEntry>(include.GetRawText(), new JsonSerializerOptions
tools\GenerateCITimeline\GitHubApi.cs (4)
81using var doc = JsonDocument.Parse($"[{string.Join(",", merged.Select(e => e.GetRawText()))}]"); 102list.Add(item.GetRawText()); 107list.Add(prop.Value.GetRawText()); 113list.Add(prop.Value.GetRawText());
WorkflowScripts\AnalyzeCiFailureWorkflowTests.cs (1)
5941Assert.Equal(expectedPrNumber, output.RootElement.GetProperty("occurrences")[0].GetProperty("pr_number").GetRawText());
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (1)
361JsonElement je => JsonSerializer.Deserialize<SerializedRenderFragment>(je.GetRawText(), jsonOptions),
Microsoft.AspNetCore.Components.Server (5)
Circuits\ComponentParameterDeserializer.cs (2)
60value.GetRawText(), 100value.GetRawText(),
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (1)
361JsonElement je => JsonSerializer.Deserialize<SerializedRenderFragment>(je.GetRawText(), jsonOptions),
src\aspnetcore\src\Components\Shared\src\WebRootComponentParameters.cs (2)
53if (!string.Equals(jsonValue.GetRawText(), otherJsonValue.GetRawText(), StringComparison.Ordinal))
Microsoft.AspNetCore.Components.WebAssembly (5)
Prerendering\WebAssemblyComponentParameterDeserializer.cs (2)
66value.GetRawText(), 102value.GetRawText(),
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (1)
361JsonElement je => JsonSerializer.Deserialize<SerializedRenderFragment>(je.GetRawText(), jsonOptions),
src\aspnetcore\src\Components\Shared\src\WebRootComponentParameters.cs (2)
53if (!string.Equals(jsonValue.GetRawText(), otherJsonValue.GetRawText(), StringComparison.Ordinal))
Microsoft.DotNet.ProjectTools (1)
LaunchSettings\LaunchSettings.cs (1)
176profileObject.GetRawText(),
Microsoft.Extensions.AI (1)
ChatCompletion\ChatResponse{T}.cs (1)
141json = data.GetRawText();
Microsoft.Extensions.AI.Abstractions.Tests (6)
AssertExtensions.cs (4)
146? $"JSON result does not match expected JSON.\r\nExpected: {expectedJson.GetRawText()}\r\nActual: {actualJson.GetRawText()}" 147: $"Parameter '{propertyName}' does not match expected JSON.\r\nExpected: {expectedJson.GetRawText()}\r\nActual: {actualJson.GetRawText()}";
Utilities\AIJsonUtilitiesTests.cs (2)
559using JsonDocument doc = JsonDocument.Parse(schema.GetRawText()); 597using JsonDocument doc = JsonDocument.Parse(schema.GetRawText());
Microsoft.Extensions.AI.Evaluation.Quality (2)
AIToolExtensions.cs (2)
29["functionSchema"] = JsonNode.Parse(function.JsonSchema.GetRawText()), 35JsonNode.Parse(function.ReturnJsonSchema.Value.GetRawText());
Microsoft.Extensions.AI.OpenAI.Tests (4)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (4)
146? $"JSON result does not match expected JSON.\r\nExpected: {expectedJson.GetRawText()}\r\nActual: {actualJson.GetRawText()}" 147: $"Parameter '{propertyName}' does not match expected JSON.\r\nExpected: {expectedJson.GetRawText()}\r\nActual: {actualJson.GetRawText()}";
Microsoft.Extensions.AI.Tests (4)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (4)
146? $"JSON result does not match expected JSON.\r\nExpected: {expectedJson.GetRawText()}\r\nActual: {actualJson.GetRawText()}" 147: $"Parameter '{propertyName}' does not match expected JSON.\r\nExpected: {expectedJson.GetRawText()}\r\nActual: {actualJson.GetRawText()}";
Microsoft.TemplateEngine.Edge (5)
parent\Shared\JExtensions.cs (3)
268var property = new KeyValuePair<string, JsonNode?>(prop.Name, ParseJsonNode(prop.Value.GetRawText())); 565result = ParseJsonNode(prop.Value.GetRawText()); 569caseInsensitiveResult = ParseJsonNode(prop.Value.GetRawText());
Settings\TemplateCache.cs (1)
140: versionToken.GetRawText();
Settings\TemplateInfoReader.cs (1)
393return value.ValueKind == JsonValueKind.String ? value.GetString() : value.GetRawText();
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (3)
parent\Shared\JExtensions.cs (3)
268var property = new KeyValuePair<string, JsonNode?>(prop.Name, ParseJsonNode(prop.Value.GetRawText())); 565result = ParseJsonNode(prop.Value.GetRawText()); 569caseInsensitiveResult = ParseJsonNode(prop.Value.GetRawText());
Microsoft.TemplateEngine.Utils (3)
parent\Shared\JExtensions.cs (3)
268var property = new KeyValuePair<string, JsonNode?>(prop.Name, ParseJsonNode(prop.Value.GetRawText())); 565result = ParseJsonNode(prop.Value.GetRawText()); 569caseInsensitiveResult = ParseJsonNode(prop.Value.GetRawText());
Microsoft.TemplateSearch.Common (3)
parent\Shared\JExtensions.cs (3)
268var property = new KeyValuePair<string, JsonNode?>(prop.Name, ParseJsonNode(prop.Value.GetRawText())); 565result = ParseJsonNode(prop.Value.GetRawText()); 569caseInsensitiveResult = ParseJsonNode(prop.Value.GetRawText());
Microsoft.TestPlatform.CommunicationUtilities (6)
Serialization\TestCaseConverter.cs (1)
68propertyData = token.GetRawText().Trim('"');
Serialization\TestCaseConverterV2.cs (1)
64: valueElement.GetRawText().Trim('"');
Serialization\TestObjectBaseConverter.cs (1)
89propertyData = valueElement.GetRawText().Trim('"');
Serialization\TestObjectConverter.cs (1)
60propertyData = valueElement.GetRawText().Trim('"');
Serialization\TestResultConverter.cs (1)
79propertyData = token.GetRawText().Trim('"');
Serialization\TestResultConverterV2.cs (1)
93: valueElement.GetRawText().Trim('"');
NuGet.Protocol (1)
Plugins\RawJsonStringConverter.cs (1)
26return doc.RootElement.GetRawText();
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (3)
985/// <seealso cref="GetRawText"/> 1009/// <seealso cref="GetRawText"/> 1639/// For other types, the value of <see cref="GetRawText"/>() is returned.