53 references to Utf8JsonWriter
aspire (8)
Acquisition\InstallSidecarWriter.cs (1)
42using (var writer = new Utf8JsonWriter(stream))
Commands\McpCallCommand.cs (1)
117using (var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true }))
Commands\McpToolsCommand.cs (1)
72using (var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true }))
src\Shared\Export\ExportArchive.cs (4)
85using var writer = new Utf8JsonWriter(entryStream, s_writerOptions); 105using var writer = new Utf8JsonWriter(entryStream, s_writerOptions); 113using var writer = new Utf8JsonWriter(entryStream, s_writerOptions); 121using var writer = new Utf8JsonWriter(entryStream, s_writerOptions);
src\Shared\IntegrationPackageProbeManifest.cs (1)
134using (var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true }))
Aspire.Dashboard (5)
Model\TextVisualizerViewModel.cs (1)
149using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true, Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping });
src\Shared\Export\ExportArchive.cs (4)
85using var writer = new Utf8JsonWriter(entryStream, s_writerOptions); 105using var writer = new Utf8JsonWriter(entryStream, s_writerOptions); 113using var writer = new Utf8JsonWriter(entryStream, s_writerOptions); 121using var writer = new Utf8JsonWriter(entryStream, s_writerOptions);
Aspire.Deployment.EndToEnd.Tests (1)
FoundryHostedAgentDeploymentTests.cs (1)
554using (var writer = new Utf8JsonWriter(stream))
Aspire.Hosting (2)
Publishing\ManifestPublisher.cs (1)
56using var jsonWriter = JsonWriter ?? new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Publishing\ManifestPublishingExtensions.cs (1)
65using var jsonWriter = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubsExtensions.cs (2)
349using var writer = new Utf8JsonWriter(writeStream, new JsonWriterOptions { Indented = true }); 462using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.Azure.ServiceBus (2)
AzureServiceBusExtensions.cs (2)
499using var writer = new Utf8JsonWriter(writeStream, new JsonWriterOptions { Indented = true }); 590using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.Foundry (5)
Toolbox\FoundryToolboxReadinessProbe.cs (1)
130using (var writer = new Utf8JsonWriter(stream))
Toolbox\FoundryToolboxReconciler.cs (1)
131using (var writer = new Utf8JsonWriter(stream))
Toolbox\FoundryToolboxToolDefinition.cs (3)
78using (var writer = new Utf8JsonWriter(stream)) 177using (var writer = new Utf8JsonWriter(stream)) 409using (var writer = new Utf8JsonWriter(stream))
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
723using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.RemoteHost (1)
src\Shared\IntegrationPackageProbeManifest.cs (1)
134using (var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true }))
Aspire.Hosting.TestUtilities (5)
Helpers\JsonDocumentManifestPublisher.cs (2)
26using var writer = new Utf8JsonWriter(stream, new() { Indented = true }); 80using var writer = new Utf8JsonWriter(stream, new() { Indented = true });
Utils\ManifestUtils.cs (3)
25var writer = new Utf8JsonWriter(ms); 50var writer = new Utf8JsonWriter(ms, new() { Indented = true }); 69var writer = new Utf8JsonWriter(ms);
dotnet-aot (2)
parent\dotnet\Commands\Test\MTP\ArtifactPostProcessingManager.cs (1)
337using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (1)
1443using (var writer = new Utf8JsonWriter(buffer, new JsonWriterOptions { Indented = true }))
ILCompiler.Compiler (1)
Compiler\DependencyAnalysis\ManagedDataDescriptorNode.cs (1)
98using (var writer = new Utf8JsonWriter(stream))
Microsoft.AspNetCore.Components.Endpoints (3)
Builder\ResourceCollectionUrlEndpoint.cs (1)
101var utf8Writer = new Utf8JsonWriter(content);
Serialization\JsonStoredDataSerializer.cs (2)
161using var writer = new Utf8JsonWriter(buffer); 215using var writer = new Utf8JsonWriter(buffer);
Microsoft.Extensions.AI.OpenAI (3)
MicrosoftExtensionsAIChatExtensions.cs (1)
240using Utf8JsonWriter writer = new(ms, new() { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping });
OpenAIResponsesChatClient.cs (1)
892using (var writer = new Utf8JsonWriter(stream))
ResponsesClientContinuationToken.cs (1)
34using Utf8JsonWriter writer = new(stream);
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientTests.cs (2)
7111using Utf8JsonWriter writer = new(stream); 7321using (var writer = new Utf8JsonWriter(ms))
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
26using (var jsonWriter = new Utf8JsonWriter(stream, options))
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
278Utf8JsonWriter writer = t_jsonWriter ??= new Utf8JsonWriter(stream);
Microsoft.NET.Build.Tasks (1)
GenerateRuntimeConfigurationFiles.cs (1)
429using (Utf8JsonWriter writer = new(stream, options))
Microsoft.NET.ProjectData (1)
Donor\ProjectDataDonorIndex.Serialization.cs (1)
110 using (Utf8JsonWriter writer = new(stream, new JsonWriterOptions { Indented = true }))
Microsoft.NET.ProjectData.Tasks (1)
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\Donor\ProjectDataDonorIndex.Serialization.cs (1)
110 using (Utf8JsonWriter writer = new(stream, new JsonWriterOptions { Indented = true }))
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
Data\StaticAssetsManifest.cs (1)
45var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { SkipValidation = true });
Utils\BrowserToolsKeyPair.cs (2)
214using (var writer = new Utf8JsonWriter(buffer, new JsonWriterOptions { Indented = true })) 228using (var writer = new Utf8JsonWriter(buffer, new JsonWriterOptions { Indented = true }))
Microsoft.NETCore.Platforms (1)
UpdateRuntimeIdentifierGraph.cs (1)
46using Utf8JsonWriter jsonWriter = new(streamWriter, new JsonWriterOptions { Indented = true });
Microsoft.TemplateEngine.Cli (1)
JExtensions.cs (1)
229using var writer = new Utf8JsonWriter(fileStream);