93 references to IsSuccessStatusCode
aspire (11)
Agents\AspireSkills\AspireSkillsInstaller.cs (2)
440if (!response.IsSuccessStatusCode) 533if (!response.IsSuccessStatusCode)
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (1)
53if (!response.IsSuccessStatusCode)
Commands\TelemetryCommandHelpers.cs (2)
152if (response.IsSuccessStatusCode && 395if (probeResponse.IsSuccessStatusCode)
Npm\SigstoreNpmProvenanceChecker.cs (1)
161if (!response.IsSuccessStatusCode)
Profiling\ProfileCaptureService.cs (1)
295if (response.IsSuccessStatusCode)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (2)
1035if (!userResponse.IsSuccessStatusCode) 1056if (membershipResponse.IsSuccessStatusCode)
Utils\EnvironmentChecker\DcpConnectionChecker.cs (2)
64if (!response.IsSuccessStatusCode) 340if (!response.IsSuccessStatusCode)
Aspire.Acquisition.Tests (1)
Scripts\Common\ScriptHostFixture.cs (1)
80if (!response.IsSuccessStatusCode)
Aspire.Cli.EndToEnd.Tests (2)
Helpers\CliE2ETestHelpers.cs (2)
860if (!response.IsSuccessStatusCode) 902if (!response.IsSuccessStatusCode)
Aspire.Dashboard (2)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (2)
1035if (!userResponse.IsSuccessStatusCode) 1056if (membershipResponse.IsSuccessStatusCode)
Aspire.EndToEnd.Tests (1)
IntegrationServicesTests.cs (1)
38Assert.True(response.IsSuccessStatusCode, responseContent);
Aspire.Hosting (2)
Dcp\DcpKubernetesClient.cs (1)
72if (!response.IsSuccessStatusCode)
ResourceBuilderExtensions.cs (1)
4245var errorMessage = response.IsSuccessStatusCode
Aspire.Hosting.Azure (1)
AcrLoginService.cs (1)
172if (!response.IsSuccessStatusCode)
Aspire.Hosting.Azure.Sandboxes (2)
Internal\Adc\AzureDevComputeClient.cs (2)
251if (!response.IsSuccessStatusCode) 456if (response.IsSuccessStatusCode)
Aspire.Hosting.Browsers (1)
BrowserEndpointDiscovery.cs (1)
214if (!response.IsSuccessStatusCode)
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
214if (!response.IsSuccessStatusCode)
Aspire.Hosting.Foundry (2)
FoundryLocalService.cs (1)
138if (!response.IsSuccessStatusCode)
HostedAgent\HostedAgentBuilderExtension.cs (1)
360if (!response.IsSuccessStatusCode)
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
83if (!resp.IsSuccessStatusCode)
Aspire.Hosting.Tests (2)
ContainerTunnelTests.cs (2)
43Assert.True(response.IsSuccessStatusCode); 86Assert.True(response.IsSuccessStatusCode);
Aspire.Seq (1)
SeqHealthCheck.cs (1)
27return response.IsSuccessStatusCode
dotnet-aot (2)
parent\dotnet\NugetSearch\NugetToolSearchApiRequest.cs (2)
31if (!response.IsSuccessStatusCode) 116if (!response.IsSuccessStatusCode)
dotnet-openapi (1)
HttpClientWrapper.cs (1)
55public bool IsSuccessCode() => _response.IsSuccessStatusCode;
dotnet-sourcelink (1)
Infrastructure.Common (3)
ServiceUtilHelper.cs (3)
582if (response.IsSuccessStatusCode) 601if (response.IsSuccessStatusCode) 620if (response.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookHandler.cs (1)
53if (!response.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
51if (!response.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
47if (!response.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
225return response.IsSuccessStatusCode switch
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1030if (!responseMessage.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.Twitter (3)
TwitterHandler.cs (3)
302if (!response.IsSuccessStatusCode) 327if (!response.IsSuccessStatusCode) 360if (response.IsSuccessStatusCode || !contentTypeIsJson)
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ReadinessNotificationService.cs (1)
54if (response.IsSuccessStatusCode)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (22)
Logging\AcceptanceTests.cs (16)
218Assert.True(response.IsSuccessStatusCode); 278Assert.True(response.IsSuccessStatusCode); 331Assert.True(response.IsSuccessStatusCode); 385Assert.True(response.IsSuccessStatusCode); 446Assert.True(response.IsSuccessStatusCode); 494Assert.True(response.IsSuccessStatusCode); 536Assert.True(response.IsSuccessStatusCode); 566Assert.True(response.IsSuccessStatusCode); 599Assert.True(firstResponse.IsSuccessStatusCode); 604Assert.True(secondResponse.IsSuccessStatusCode); 758Assert.True(response.IsSuccessStatusCode); 788Assert.True(response.IsSuccessStatusCode); 826Assert.True(response.IsSuccessStatusCode); 837Assert.True(response2.IsSuccessStatusCode); 967Assert.True(response.IsSuccessStatusCode); 983Assert.True(response.IsSuccessStatusCode);
Logging\AcceptanceTests.Mvc.cs (5)
66Assert.True(response.IsSuccessStatusCode); 101Assert.True(response.IsSuccessStatusCode); 147Assert.True(response.IsSuccessStatusCode); 191Assert.True(response.IsSuccessStatusCode); 232Assert.False(response.IsSuccessStatusCode);
Logging\AcceptanceTests.Routing.cs (1)
66Assert.True(response.IsSuccessStatusCode);
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\LoggingHttpMessageHandler.cs (1)
31if (!response.IsSuccessStatusCode && response.StatusCode != HttpStatusCode.SwitchingProtocols)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\NginxDeployer.cs (1)
86if (!response.IsSuccessStatusCode)
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyLaunchManager.cs (2)
82var running = response.IsSuccessStatusCode; 113var running = response.IsSuccessStatusCode;
Microsoft.DotNet.Cli.InternalMicrosoft (2)
Internal\GitHubMembershipClient.cs (2)
110if (!userResponse.IsSuccessStatusCode) 128if (membershipResponse.IsSuccessStatusCode)
Microsoft.Extensions.AI.Evaluation.Safety (3)
ContentSafetyService.cs (3)
207if (!response.IsSuccessStatusCode) 258if (!response.IsSuccessStatusCode) 316if (!response.IsSuccessStatusCode)
Microsoft.Extensions.DataIngestion.Tests (1)
Readers\DocumentReaderConformanceTests.cs (1)
169Assert.True(response.IsSuccessStatusCode);
Microsoft.Extensions.Logging.AzureAppServices (1)
BlobAppendReferenceWrapper.cs (1)
64if (response.IsSuccessStatusCode ||
Microsoft.Maui.Controls (1)
StreamWrapper.cs (1)
96 if (!response.IsSuccessStatusCode)
Microsoft.ML.Tokenizers.Data.Tests (1)
parent\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
22if (response.IsSuccessStatusCode)
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
22if (response.IsSuccessStatusCode)
Microsoft.NET.Build.Containers (3)
AuthHandshakeMessageHandler.cs (2)
558if (!postResponse.IsSuccessStatusCode) 602if (!tokenResponse.IsSuccessStatusCode)
Registry\DefaultManifestOperations.cs (1)
61if (!putResponse.IsSuccessStatusCode)
Microsoft.NET.Sdk.Publish.Tasks (2)
Kudu\KuduVfsDeploy.cs (1)
74if (!response.IsSuccessStatusCode)
Kudu\KuduZipDeploy.cs (1)
65if (!response.IsSuccessStatusCode)
Microsoft.TemplateSearch.Common (1)
Providers\NuGetMetadataSearchProvider.cs (1)
187if (response.IsSuccessStatusCode)
NuGet.Packaging (1)
Signing\Timestamp\Rfc3161TimestampRequestNetstandard21Wrapper.cs (1)
61if (!httpResponse.IsSuccessStatusCode)
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
155if (!response.IsSuccessStatusCode)
System.Net.Http (3)
System\Net\Http\HttpResponseMessage.cs (1)
163if (!IsSuccessStatusCode)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
811if (!tunnelResponse.IsSuccessStatusCode)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
785if (request.Method.IsConnect && response.IsSuccessStatusCode)