56 references to IsSuccessStatusCode
aspire (1)
Npm\SigstoreNpmProvenanceChecker.cs (1)
98if (!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)
2501return response.IsSuccessStatusCode
Aspire.Hosting.Azure (1)
AcrLoginService.cs (1)
114if (!response.IsSuccessStatusCode)
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
83if (!resp.IsSuccessStatusCode)
Aspire.Hosting.Tests (2)
ContainerTunnelTests.cs (2)
39Assert.True(response.IsSuccessStatusCode); 79Assert.True(response.IsSuccessStatusCode);
Aspire.Seq (1)
SeqHealthCheck.cs (1)
24return response.IsSuccessStatusCode
dotnet (1)
NugetSearch\NugetToolSearchApiRequest.cs (1)
26if (!response.IsSuccessStatusCode)
dotnet-sourcelink (1)
Infrastructure.Common (3)
ServiceUtilHelper.cs (3)
577if (response.IsSuccessStatusCode) 596if (response.IsSuccessStatusCode) 615if (response.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
225return response.IsSuccessStatusCode switch
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.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)
170Assert.True(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)
48if (!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)
791if (!tunnelResponse.IsSuccessStatusCode)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
782if (request.Method.IsConnect && response.IsSuccessStatusCode)