51 references to UriSchemeHttp
aspire (5)
Acquisition\IdentityResolver.cs (1)
262|| (uri.Scheme != Uri.UriSchemeHttp && uri.Scheme != Uri.UriSchemeHttps))
Documentation\ApiDocs\ApiDocsSourceConfiguration.cs (1)
199(resolvedUri.Scheme == Uri.UriSchemeHttp || resolvedUri.Scheme == Uri.UriSchemeHttps))
Packaging\PackageSourceOverrideMappings.cs (1)
101(uri.Scheme.Equals(Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase) ||
Utils\PackageSourceRedactor.cs (1)
49(uri.Scheme != Uri.UriSchemeHttp && uri.Scheme != Uri.UriSchemeHttps))
Utils\UrlHelper.cs (1)
16(parsed.Scheme == Uri.UriSchemeHttp || parsed.Scheme == Uri.UriSchemeHttps);
Aspire.Hosting.Azure.Sandboxes (2)
AzureSandboxContainerDeployment.cs (2)
883(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) && 1197if (Uri.TryCreate($"{Uri.UriSchemeHttp}://{resolved.Value}", UriKind.Absolute, out var endpointUri) &&
Aspire.Hosting.Browsers (1)
BrowserEndpointDiscovery.cs (1)
205Scheme = browserEndpoint.Scheme == Uri.UriSchemeWss ? Uri.UriSchemeHttps : Uri.UriSchemeHttp,
Aspire.Hosting.Browsers.Tests (1)
src\Aspire.Hosting.Browsers\BrowserEndpointDiscovery.cs (1)
205Scheme = browserEndpoint.Scheme == Uri.UriSchemeWss ? Uri.UriSchemeHttps : Uri.UriSchemeHttp,
Aspire.Hosting.Testing.Tests (2)
DashboardUrlTests.cs (2)
31Assert.Equal(Uri.UriSchemeHttp, dashboardUri.Scheme); 263Assert.Equal(Uri.UriSchemeHttp, dashboardUri.Scheme);
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsPolicyBuilder.cs (1)
72(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) &&
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostService.cs (1)
91var httpUrls = ExpandPorts(httpPorts, Uri.UriSchemeHttp);
Microsoft.AspNetCore.Identity (1)
PasskeyEndpointsEndpointRouteBuilderExtensions.cs (1)
209(absolute.Scheme == Uri.UriSchemeHttp || absolute.Scheme == Uri.UriSchemeHttps))
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Common\DeploymentParameters.cs (1)
116public string Scheme { get; set; } = Uri.UriSchemeHttp;
Common\TestUriHelper.cs (1)
20return BuildTestUri(serverType, Uri.UriSchemeHttp, hint, statusMessagesEnabled);
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
NuGet.Common (1)
UriUtility.cs (1)
15return uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps;
NuGet.PackageManagement (1)
Utility\UriHelper.cs (1)
121return (uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps);
NuGet.Packaging (3)
Signing\Timestamp\Rfc3161TimestampProvider.cs (2)
30if (!string.Equals(timeStampServerUrl.Scheme, Uri.UriSchemeHttp, StringComparison.Ordinal) && 37nameof(Uri.UriSchemeHttp),
Signing\Timestamp\Rfc3161TimestampRequestNetstandard21Wrapper.cs (1)
50if (timestampUri.Scheme != Uri.UriSchemeHttp && timestampUri.Scheme != Uri.UriSchemeHttps)
NuGet.Protocol (4)
Resources\PackageUpdateResource.cs (2)
439if (logErrorForHttpSources && serviceEndpointUrl.Scheme == Uri.UriSchemeHttp && !allowInsecureConnections) 741if (sourceUri.Scheme == Uri.UriSchemeHttp && !allowInsecureConnections)
Resources\ServiceIndexResourceV3.cs (2)
187if (packageSource != null && uri.Scheme == Uri.UriSchemeHttp && packageSource.IsHttps) 254if (packageSource != null && uri.Scheme == Uri.UriSchemeHttp && packageSource.IsHttps)
PresentationCore (8)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
402if (!string.Equals(requestedUri.Scheme, Uri.UriSchemeHttp, StringComparison.Ordinal) && !string.Equals(requestedUri.Scheme, Uri.UriSchemeHttps, StringComparison.Ordinal))
MS\Internal\IO\Packaging\NetStream.cs (1)
92if (fullStreamLength > 0 && ((string.Equals(uri.Scheme, Uri.UriSchemeHttp, StringComparison.Ordinal)) ||
MS\Internal\IO\Packaging\PseudoWebRequest.cs (1)
342if (IsScheme(Uri.UriSchemeHttp))
System\Windows\Media\Imaging\BitmapDecoder.cs (3)
275((finalUri.Scheme == Uri.UriSchemeHttp) || 1021Debug.Assert((uri.Scheme == Uri.UriSchemeHttp) || (uri.Scheme == Uri.UriSchemeHttps)); 1063else if (uri.Scheme == Uri.UriSchemeHttp) // for http
System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (1)
50if (uriToDecode.Scheme == Uri.UriSchemeHttp ||
System\Windows\Media\MediaPlayerState.cs (1)
840&& (uriToOpen.Scheme == Uri.UriSchemeHttp || uriToOpen.Scheme == Uri.UriSchemeHttps)
PresentationFramework (2)
MS\Internal\AppModel\AppSecurityManager.cs (2)
72bool isKnownScheme = (Object.ReferenceEquals(destinationUri.Scheme, Uri.UriSchemeHttp)) || 129if (uri.Scheme != Uri.UriSchemeHttp && uri.Scheme != Uri.UriSchemeHttps)
QuarantineTools.Tests (1)
QuarantineScriptTests.cs (1)
411return uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (1)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\UrlAttribute.cs (1)
24return valueAsUri.Scheme == Uri.UriSchemeHttp
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
24var builder = new UriBuilder(Uri.UriSchemeHttp, host, port);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
333Debug.Assert(request.RequestUri.Scheme == Uri.UriSchemeHttp);
System.Net.Http.WinHttpHandler (2)
System\Net\Http\WinHttpHandler.cs (2)
603if (requestUri.Scheme != Uri.UriSchemeHttp && requestUri.Scheme != Uri.UriSchemeHttps) 1013state.RequestMessage.RequestUri.Scheme == Uri.UriSchemeHttps && responseMessage.Headers.Location?.Scheme == Uri.UriSchemeHttp)
System.Net.HttpListener (1)
System\Net\ServiceNameStore.cs (1)
102if (!Uri.TryCreate(Uri.UriSchemeHttp + Uri.SchemeDelimiter + host, UriKind.Absolute, out constructedUri))
System.Private.Uri (1)
System\UriBuilder.cs (1)
36_uri = new Uri(Uri.UriSchemeHttp + Uri.SchemeDelimiter + uri);
TypeScriptApiCompat (1)
ApiCompatSuppression.cs (1)
76(uri.Scheme != Uri.UriSchemeHttps && uri.Scheme != Uri.UriSchemeHttp))