90 references to IsSuccessStatusCode
aspire (11)
Agents\AspireSkills\AspireSkillsInstaller.cs (2)
440if (!response.IsSuccessStatusCode) 533if (!response.IsSuccessStatusCode)
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (1)
50if (!response.IsSuccessStatusCode)
Commands\TelemetryCommandHelpers.cs (2)
153if (response.IsSuccessStatusCode && 380if (probeResponse.IsSuccessStatusCode)
Npm\SigstoreNpmProvenanceChecker.cs (1)
160if (!response.IsSuccessStatusCode)
Profiling\ProfileCaptureService.cs (1)
292if (response.IsSuccessStatusCode)
Telemetry\InternalMicrosoftDetector.cs (2)
704if (!userResponse.IsSuccessStatusCode) 717if (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)
831if (!response.IsSuccessStatusCode) 873if (!response.IsSuccessStatusCode)
Aspire.Dashboard (1)
Telemetry\DashboardTelemetrySender.cs (1)
143var isTelemetryEnabled = response.IsSuccessStatusCode && await response.Content.ReadFromJsonAsync<TelemetryEnabledResponse>().ConfigureAwait(false) is { IsEnabled: true };
Aspire.EndToEnd.Tests (1)
IntegrationServicesTests.cs (1)
38Assert.True(response.IsSuccessStatusCode, responseContent);
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
3874var 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 (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
358if (!response.IsSuccessStatusCode)
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
83if (!resp.IsSuccessStatusCode)
Aspire.Hosting.Tests (2)
ContainerTunnelTests.cs (2)
39Assert.True(response.IsSuccessStatusCode); 78Assert.True(response.IsSuccessStatusCode);
Aspire.Seq (1)
SeqHealthCheck.cs (1)
27return response.IsSuccessStatusCode
BlazorHosted.ClientServiceDefaults (1)
BackgroundExportHandler.cs (1)
44if (!response.IsSuccessStatusCode)
BlazorStandalone.ClientServiceDefaults (1)
BackgroundExportHandler.cs (1)
48if (!response.IsSuccessStatusCode)
dotnet (1)
NugetSearch\NugetToolSearchApiRequest.cs (1)
31if (!response.IsSuccessStatusCode)
dotnet-aot (2)
src\sdk\src\Cli\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)
577if (response.IsSuccessStatusCode) 596if (response.IsSuccessStatusCode) 615if (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 (20)
Logging\AcceptanceTests.cs (14)
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); 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.HotReload.WebAssembly.Browser (1)
WebAssemblyHotReload.cs (1)
97if (response.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)
test\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)
489if (!postResponse.IsSuccessStatusCode) 533if (!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)
158if (!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)