46 references to ReadAsStringAsync
aspire (13)
Agents\AspireSkills\AspireSkillsInstaller.cs (1)
446var json = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (1)
56attestationJson = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Commands\ExportCommand.cs (2)
298var json = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); 329var json = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Commands\TelemetryLogsCommand.cs (1)
171var json = await response.Content.ReadAsStringAsync(cancellationToken);
Commands\TelemetrySpansCommand.cs (1)
163var json = await response.Content.ReadAsStringAsync(cancellationToken);
Commands\TelemetryTracesCommand.cs (2)
147var json = await response.Content.ReadAsStringAsync(cancellationToken); 209var json = await response.Content.ReadAsStringAsync(cancellationToken);
Documentation\CachedHttpDocumentFetcher.cs (2)
64var retryContent = await retryResponse.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); 78var content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Npm\SigstoreNpmProvenanceChecker.cs (1)
166return await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Telemetry\InternalMicrosoftDetector.cs (2)
719using var doc = JsonDocument.Parse(await membershipResponse.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false)); 751using var doc = JsonDocument.Parse(await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false));
Aspire.EndToEnd.Tests (1)
IntegrationServicesTests.cs (1)
36var responseContent = await response.Content.ReadAsStringAsync(cancellationToken);
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
3881var result = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (1)
AcrLoginService.cs (1)
170var responseBody = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (2)
360var errorPayload = await response.Content.ReadAsStringAsync(ctx.CancellationToken).ConfigureAwait(true); 383var responseText = await response.Content.ReadAsStringAsync(ctx.CancellationToken).ConfigureAwait(true);
Aspire.Hosting.Foundry.Tests (1)
HostedAgentExtensionTests.cs (1)
813? await request.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false)
Aspire.Hosting.GitHub.Models (1)
GitHubModelsHealthCheck.cs (1)
78var content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.OpenAI (1)
OpenAIModelHealthCheck.cs (1)
70var content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
605var content = await response.Content.ReadAsStringAsync(ct);
Aspire.Hosting.Seq.Tests (1)
SeqFunctionalTests.cs (1)
62var reponseContent = await response.Content.ReadAsStringAsync(token);
Aspire.Hosting.Tests (1)
WithHttpCommandTests.cs (1)
569? await request.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false)
dotnet (1)
NugetSearch\NugetToolSearchApiRequest.cs (1)
47return await response.Content.ReadAsStringAsync(cancellation.Token);
dotnet-aot (2)
src\sdk\src\Cli\dotnet\NugetSearch\NugetToolSearchApiRequest.cs (2)
47return await response.Content.ReadAsStringAsync(cancellation.Token); 132var indexJson = await response.Content.ReadAsStringAsync(cancellation.Token);
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookHandler.cs (1)
58using (var payload = JsonDocument.Parse(await response.Content.ReadAsStringAsync(Context.RequestAborted)))
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
56using (var payload = JsonDocument.Parse(await response.Content.ReadAsStringAsync(Context.RequestAborted)))
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
52using (var payload = JsonDocument.Parse(await response.Content.ReadAsStringAsync(Context.RequestAborted)))
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
223var body = await response.Content.ReadAsStringAsync(Context.RequestAborted);
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectHandler.cs (3)
623var parResponseString = await parResponseMessage.Content.ReadAsStringAsync(Context.RequestAborted); 1022var responseContent = await responseMessage.Content.ReadAsStringAsync(Context.RequestAborted); 1068var userInfoResponse = await responseMessage.Content.ReadAsStringAsync(Context.RequestAborted);
Microsoft.AspNetCore.Authentication.Twitter (3)
TwitterHandler.cs (3)
276var responseText = await response.Content.ReadAsStringAsync(Context.RequestAborted); 308var responseText = await response.Content.ReadAsStringAsync(Context.RequestAborted); 332var responseText = await response.Content.ReadAsStringAsync(Context.RequestAborted);
Microsoft.Extensions.AI.Evaluation.Safety (4)
ContentSafetyService.cs (4)
219await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); 271await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); 328await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); 398await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NET.Build.Containers (2)
Registry\DefaultBlobOperations.cs (1)
48JsonNode? configDoc = JsonNode.Parse(await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false));
Registry\HttpExtensions.cs (1)
76string detail = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Microsoft.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
190string resultText = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
160var errorContent = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
System.Net.Http (1)
System\Net\Http\HttpContent.cs (1)
98ReadAsStringAsync(CancellationToken.None);