251 references to Scheme
Aspire.Dashboard.Tests (1)
Integration\StartupTests.cs (1)
650Assert.Equal("https", uri.Scheme);
Aspire.Hosting (8)
Dashboard\DashboardLifecycleHook.cs (1)
256firstDashboardUrl.Scheme,
Dashboard\DashboardServiceHost.cs (1)
150scheme = uri.Scheme;
Dashboard\TransportOptionsValidator.cs (3)
35if (parsedFirstApplicationUrl.Scheme == "http") 69if (parsedResourceServiceEndpointUrl.Scheme == "http") 86if (parsedUri.Scheme == "http")
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (2)
36if (!originalUrlSnapshot.IsInternal && (uri.Scheme == "http" || uri.Scheme == "https") && uri.Host == "localhost")
Devcontainers\Codespaces\CodespacesUrlRewriter.cs (1)
29var codespacesUrl = $"{uri.Scheme}://{options.Value.CodespaceName}-{uri.Port}.{options.Value.PortForwardingDomain}{uri.AbsolutePath}";
AutobahnTestApp (1)
Program.cs (1)
60if (uri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
BuildActionTelemetryTable (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (2)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
ClientSample (3)
HubSample.cs (1)
45if (uri.Scheme == "net.tcp")
Tcp\TcpHubConnectionBuilderExtensions.cs (2)
20if (!string.Equals(uri.Scheme, "net.tcp", StringComparison.Ordinal)) 22throw new InvalidOperationException($"URI Scheme {uri.Scheme} not supported.");
dotnet-svcutil-lib (40)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
399if (string.Compare(via.Scheme, "ws", StringComparison.OrdinalIgnoreCase) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
69if (string.Compare(via.Scheme, "wss", StringComparison.OrdinalIgnoreCase) != 0)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportBindingElementImporter.cs (1)
91if (address.Uri.Scheme == /*TODO: Uri.UriSchemeHttps*/ "https" && transportBindingElement is HttpTransportBindingElement && !(transportBindingElement is HttpsTransportBindingElement))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportChannelFactory.cs (3)
170if (via.Scheme != this.Scheme) 173if (string.Compare(via.Scheme, this.Scheme, StringComparison.OrdinalIgnoreCase) != 0) 176via.Scheme, this.Scheme));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
343Fx.Assert(request.RequestUri.Scheme == UriEx.UriSchemeHttps,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (3)
52(WebSocketHelper.SchemeWs.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase) || 53WebSocketHelper.SchemeWss.Equals(uri.Scheme, StringComparison.OrdinalIgnoreCase)); 66switch (uri.Scheme.ToLowerInvariant())
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (6)
63CreateChannelFactory(address.Scheme); 74CreateChannelFactory(address.Uri.Scheme); 191return address.Scheme == "http" || address.Scheme == "https"; 726if (location.Scheme != "http" && location.Scheme != "https")
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceMetadataExtension.cs (3)
196: this(listenUri.Host, requestHost, removeBaseAddress, listenUri.Scheme, requestPort, updatePortsByScheme) 273if (uri.Scheme == _requestScheme) 277else if (!_updatePortsByScheme.TryGetValue(uri.Scheme, out port))
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (2)
358if (u1.Scheme != u2.Scheme) // Uri.Scheme is always lowercase
FrameworkFork\System.ServiceModel\System\ServiceModel\UriSchemeKeyedCollection.cs (7)
29return item.Scheme; 35if (this.Contains(item.Scheme)) 36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", string.Format(SRServiceModel.BaseAddressDuplicateScheme, item.Scheme)); 44if (this[index].Scheme != item.Scheme) 46if (this.Contains(item.Scheme)) 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", string.Format(SRServiceModel.BaseAddressDuplicateScheme, item.Scheme));
Metadata\MetadaExchangeResolver.cs (3)
94bool isHttp = this.EndpointAddress.Uri.Scheme == MetadataConstants.Uri.UriSchemeHttp || this.EndpointAddress.Uri.Scheme == MetadataConstants.Uri.UriSchemeHttps; 369string scheme = endpointAddress.Uri.Scheme;
Metadata\MetadataDocumentLoader.cs (7)
214if (serviceUri.Scheme == MetadataConstants.Uri.UriSchemeFile) 273return serviceUri.Scheme == MetadataConstants.Uri.UriSchemeHttp || 274serviceUri.Scheme == MetadataConstants.Uri.UriSchemeHttps || 275serviceUri.Scheme == MetadataConstants.Uri.UriSchemeNetTcp || 276serviceUri.Scheme == MetadataConstants.Uri.UriSchemeNetPipe || 277serviceUri.Scheme == MetadataConstants.Uri.UriSchemeFile; 378if (schemaUri.Scheme == MetadataConstants.Uri.UriSchemeFile)
Metadata\ServiceDescriptor.cs (1)
101if (MetadataUrl != null && MetadataUrl.Scheme.Equals("net.pipe"))
Shared\Utilities\PathHelper.cs (1)
61if (!isUrl && (Uri.TryCreate(Path.Combine(basePath, input), UriKind.Absolute, out var uri)) && uri.Scheme == "file")
InMemory.FunctionalTests (1)
TestTransport\InMemoryHttpClientSlim.cs (1)
122if (requestUri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
234return absoluteUri.Scheme != request.Scheme
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (2)
370var devToolsUrlWithProxy = $"{devToolsUrlAbsolute.Scheme}://{devToolsUrlAbsolute.Authority}{devToolsUrlAbsolute.AbsolutePath}?{underlyingV8Endpoint.Scheme}={proxyEndpoint.Authority}{underlyingV8Endpoint.PathAndQuery}";
Microsoft.AspNetCore.Cors (5)
Infrastructure\CorsPolicyBuilder.cs (3)
72(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) && 75var builder = new UriBuilder(uri.Scheme.ToLowerInvariant(), uri.IdnHost.ToLowerInvariant());
Infrastructure\UriHelpers.cs (2)
12&& subdomain.Scheme == domain.Scheme
Microsoft.AspNetCore.Http.Connections.Client (3)
Internal\Utils.cs (1)
15Scheme = url.Scheme,
Internal\WebSocketsTransport.cs (2)
643if (url.Scheme == "http") 647else if (url.Scheme == "https")
Microsoft.AspNetCore.Http.Extensions (1)
UriHelper.cs (1)
165scheme: uri.Scheme,
Microsoft.AspNetCore.InternalTesting (1)
HttpClientSlim.cs (1)
155if (requestUri.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestTests.cs (1)
610server.Listener.Options.UrlPrefixes.Add(UrlPrefix.Create(rootUri.Scheme, rootUri.Host, rootUri.Port, path));
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
164port = (uri.Scheme == "https") ? TestPortHelper.GetNextSSLPort() : TestPortHelper.GetNextPort();
Microsoft.AspNetCore.TestHost (3)
ClientHandler.cs (1)
116req.Scheme = request.RequestUri!.Scheme;
TestServer.cs (1)
215request.Scheme = BaseAddress.Scheme;
WebSocketClient.cs (1)
61var scheme = uri.Scheme;
Microsoft.Build.Tasks.Core (1)
ManifestUtil\PathUtil.cs (1)
56if (Uri.UriSchemeFile.Equals(u.Scheme, StringComparison.OrdinalIgnoreCase) &&
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (2)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Extensions\Extensions.cs (2)
79if (documentUri.Scheme != SourceGeneratedDocumentUri.Scheme) 106if (documentIdentifier.Uri.Scheme == SourceGeneratedDocumentUri.Scheme)
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
125var hasOpenSourceGeneratedDocuments = _lspWorkspaceManager.GetTrackedLspText().Keys.Any(uri => uri.Scheme == SourceGeneratedDocumentUri.Scheme);
Protocol\Notebook\NotebookDocumentFilter.cs (1)
28/// A Uri scheme (<see cref="System.Uri.Scheme"/>) like <c>file</c> or <c>untitled</c>.
Workspaces\LspWorkspaceManager.cs (1)
396_trackedDocuments.Keys.Where(static uri => uri.Scheme == SourceGeneratedDocumentUri.Scheme)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Workspaces\SourceGeneratedDocumentUriTests.cs (1)
35Assert.Equal(SourceGeneratedDocumentUri.Scheme, uri.Scheme);
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticDescriptorExtensions.cs (2)
257(uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps) ? uri : null;
Microsoft.DotNet.SignCheck (2)
SignCheck.cs (2)
203if ((Uri.TryCreate(inputFile, UriKind.Absolute, out uriResult)) && (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps))
Microsoft.Extensions.Http (4)
Logging\LogHelper.cs (4)
200(true, true) => $"{uri.Scheme}://{uri.Host}{GetPath(pathAndQuery, queryIndex)}*", 201(true, false) => $"{uri.Scheme}://{uri.Host}:{uri.Port}{GetPath(pathAndQuery, queryIndex)}*", 202(false, true) => $"{uri.Scheme}://{uri.Host}{pathAndQuery}", 203(false, false) => $"{uri.Scheme}://{uri.Host}:{uri.Port}{pathAndQuery}"
Microsoft.Extensions.Http.Resilience (3)
Internal\UriExtensions.cs (2)
25if (currentUri.Scheme == hostUri.Scheme && currentUri.Host == hostUri.Host && currentUri.Port == hostUri.Port && hostUri.LocalPath == "/")
Resilience\Internal\ByAuthorityPipelineKeyProvider.cs (1)
18var key = (url.Scheme, url.Host, url.Port);
Microsoft.Extensions.ServiceDiscovery (2)
Http\ResolvingHttpDelegatingHandler.cs (2)
112if (uri.Scheme.IndexOf('+') > 0) 114var scheme = uri.Scheme.Split('+')[0];
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
ServiceEndpointQuery.cs (1)
71var schemes = hasScheme ? uri.Scheme.Split('+') : [];
Microsoft.Extensions.ServiceDiscovery.Yarp (4)
ServiceDiscoveryDestinationResolver.cs (4)
79uriBuilder.Scheme = uri.Scheme; 109if (originalUri.Scheme.IndexOf('+') > 0) 112var specifiedSchemes = originalUri.Scheme.Split('+'); 125return originalUri.Scheme;
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (1)
YarpServiceDiscoveryTests.cs (1)
261Assert.Equal(expectedScheme, uri.Scheme);
Microsoft.Maui (2)
Handlers\WebView\WebViewHandler.iOS.cs (1)
150 var safeHostUri = new Uri($"{uri.Scheme}://{uri.Authority}", UriKind.Absolute);
Platform\iOS\MauiWKWebView.cs (1)
109 var safeHostUri = new Uri($"{uri.Scheme}://{uri.Authority}", UriKind.Absolute);
Microsoft.Maui.Controls (2)
ImageSource.cs (1)
111 return Uri.TryCreate(source, UriKind.Absolute, out uri) && uri.Scheme != "file" ? FromUri(uri) : FromFile(source);
ImageSourceConverter.cs (1)
29 return Uri.TryCreate(strValue, UriKind.Absolute, out Uri uri) && uri.Scheme != "file" ? ImageSource.FromUri(uri) : ImageSource.FromFile(strValue);
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\ImageSourceTypeConverter.cs (1)
18 if (Uri.TryCreate(value, UriKind.Absolute, out Uri uri) && uri.Scheme != "file")
Microsoft.Maui.Controls.Compatibility (2)
iOS\Platform.cs (1)
634 if (uri.Scheme == "ms-appdata")
iOS\Renderers\WkWebViewRenderer.cs (1)
181 var safeHostUri = new Uri($"{uri.Scheme}://{uri.Authority}", UriKind.Absolute);
Microsoft.Maui.Essentials (3)
Types\Shared\WebUtils.shared.cs (3)
87 return new Uri(uri.Scheme + "://" + idn.GetAscii(uri.Authority) + uri.PathAndQuery + uri.Fragment); 92 if (!callbackUrl.Scheme.Equals(expectedUrl.Scheme, StringComparison.OrdinalIgnoreCase))
Microsoft.ML.Parquet (3)
PartitionedPathUtils.cs (3)
29if (baseUri.Scheme != uri.Scheme) 53if (uri.Scheme.Equals("file", StringComparison.OrdinalIgnoreCase))
Microsoft.Svcutil.NamedPipeMetadataImporter (1)
NamedPipeMetadataImporter.cs (1)
32if (uri.Scheme != UriSchemeNetPipe)
Microsoft.VisualStudio.LanguageServices (2)
Utilities\VisualStudioNavigateToLinkService.cs (2)
35if (uri.Scheme != Uri.UriSchemeHttp && uri.Scheme != Uri.UriSchemeHttps)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\Projects\RoslynRemoteProjectInfoProvider.cs (1)
76.Where(f => f.Scheme != SystemUriSchemeExternal)
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ResourceIDHelper.cs (2)
57if (baseUri.Scheme == sourceUri.Scheme && baseUri.Host == sourceUri.Host)
PresentationCore (31)
MS\Internal\AppModel\SiteOfOriginPart.cs (1)
142if (string.Equals(_absoluteLocation.Scheme, Uri.UriSchemeFile, StringComparison.OrdinalIgnoreCase))
MS\Internal\FontCache\FontCacheUtil.cs (1)
557else if (fontLocation.Scheme == PackUriHelper.UriSchemePack)
MS\Internal\FontCache\FontResourceCache.cs (1)
60Debug.Assert(uri.IsAbsoluteUri && uri.Scheme == PackUriHelper.UriSchemePack && BaseUriHelper.IsPackApplicationUri(uri));
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (2)
403if (!string.Equals(requestedUri.Scheme, Uri.UriSchemeHttp, StringComparison.Ordinal) && !string.Equals(requestedUri.Scheme, Uri.UriSchemeHttps, StringComparison.Ordinal))
MS\Internal\IO\Packaging\NetStream.cs (2)
93if (fullStreamLength > 0 && ((string.Equals(uri.Scheme, Uri.UriSchemeHttp, StringComparison.Ordinal)) || 94(string.Equals(uri.Scheme, Uri.UriSchemeHttps, StringComparison.Ordinal))))
MS\Internal\IO\Packaging\PseudoWebRequest.cs (1)
327return (string.Equals(_innerUri.Scheme, schemeName, StringComparison.Ordinal));
MS\Internal\WpfWebRequestHelper.cs (1)
57if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.Ordinal))
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (4)
82return string.Equals(first.Scheme, second.Scheme, StringComparison.OrdinalIgnoreCase) && string.Equals(first.Host, second.Host); 160if (string.Equals(sourceUri.Scheme, destinationUri.Scheme, StringComparison.OrdinalIgnoreCase))
System\IO\Packaging\PackWebRequestFactory.cs (2)
60if (!string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.Ordinal)) 138if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.Ordinal))
System\Windows\Media\Imaging\BitmapDecoder.cs (7)
269((finalUri.Scheme == Uri.UriSchemeHttp) || 270(finalUri.Scheme == Uri.UriSchemeHttps))) 1015Debug.Assert((uri.Scheme == Uri.UriSchemeHttp) || (uri.Scheme == Uri.UriSchemeHttps)); 1025if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase)) 1057else if (uri.Scheme == Uri.UriSchemeHttp) // for http 1061else if (uri.Scheme == Uri.UriSchemeHttps) // for https
System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (2)
50if (uriToDecode.Scheme == Uri.UriSchemeHttp || 51uriToDecode.Scheme == Uri.UriSchemeHttps)
System\Windows\Media\mediaclock.cs (1)
196&& baseUri.Scheme != System.IO.Packaging.PackUriHelper.UriSchemePack
System\Windows\Media\MediaPlayerState.cs (1)
818if (source != null && source.IsAbsoluteUri && source.Scheme == PackUriHelper.UriSchemePack)
System\Windows\Navigation\BaseUriHelper.cs (5)
149string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase) && 171Debug.Assert(uri is not null && uri.IsAbsoluteUri && string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase) && IsPackApplicationUri(uri)); 369Invariant.Assert(packUri.IsAbsoluteUri && string.Equals(packUri.Scheme, PackAppBaseUri.Scheme, StringComparison.OrdinalIgnoreCase)); 390string.Equals(uri.Scheme, Uri.UriSchemeFile, StringComparison.OrdinalIgnoreCase) &&
PresentationFramework (19)
MS\Internal\AppModel\AppModelKnownContentFactory.cs (4)
78if (string.Equals(baseUri.Scheme, BaseUriHelper.PackAppBaseUri.Scheme, StringComparison.OrdinalIgnoreCase)) 143if (string.Equals(baseUri.Scheme, BaseUriHelper.PackAppBaseUri.Scheme, StringComparison.OrdinalIgnoreCase))
MS\Internal\AppModel\AppSecurityManager.cs (5)
78bool isKnownScheme = (Object.ReferenceEquals(destinationUri.Scheme, Uri.UriSchemeHttp)) || 79(Object.ReferenceEquals(destinationUri.Scheme, Uri.UriSchemeHttps)) || 82bool fIsMailTo = string.Equals(destinationUri.Scheme, Uri.UriSchemeMailto, StringComparison.OrdinalIgnoreCase); 138if (uri.Scheme != Uri.UriSchemeHttp && uri.Scheme != Uri.UriSchemeHttps)
MS\Internal\Controls\WebBrowserEvent.cs (2)
158return uri != null && (uri.Scheme == "javascript" || uri.Scheme == "vbscript");
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\BindUriHelper.cs (4)
82return string.Equals(first.Scheme, second.Scheme, StringComparison.OrdinalIgnoreCase) && string.Equals(first.Host, second.Host); 160if (string.Equals(sourceUri.Scheme, destinationUri.Scheme, StringComparison.OrdinalIgnoreCase))
System\Windows\Controls\AVElementHelper.cs (1)
127if (value.Scheme != System.IO.Packaging.PackUriHelper.UriSchemePack)
System\Windows\Documents\FixedDocument.cs (2)
868if (baseUri.Scheme.Equals(PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase)) 896if (baseUri.Scheme.Equals(PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase))
System\Windows\Navigation\JournalEntry.cs (1)
334if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.OrdinalIgnoreCase))
PresentationUI (1)
MS\Internal\Documents\Application\AddressUtility.cs (1)
31return mailtoUri is not null && string.Equals(mailtoUri.Scheme, Uri.UriSchemeMailto, StringComparison.OrdinalIgnoreCase);
System.IO.Packaging (4)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
418|| (targetUri.IsAbsoluteUri && targetUri.Scheme == PackUriHelper.UriSchemePack))
System\IO\Packaging\PackUriHelper.PackUriScheme.cs (3)
188if (firstPackageUri.Scheme == PackUriHelper.UriSchemePack && secondPackageUri.Scheme == PackUriHelper.UriSchemePack) 269if (packUri.Scheme != PackUriHelper.UriSchemePack)
System.Net.Http (24)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (2)
63if (uriPrefix.Scheme != uri.Scheme || uriPrefix.Host != uri.Host || uriPrefix.Port != uri.Port)
System\Net\Http\DiagnosticsHelper.cs (4)
38(true, true) => $"{uri.Scheme}://{uri.Host}{pathAndQuery.AsSpan(0, queryIndex + 1)}*", 39(true, false) => $"{uri.Scheme}://{uri.Host}:{uri.Port}{pathAndQuery.AsSpan(0, queryIndex + 1)}*", 40(false, true) => $"{uri.Scheme}://{uri.Host}{pathAndQuery}", 41(false, false) => $"{uri.Scheme}://{uri.Host}:{uri.Port}{pathAndQuery}"
System\Net\Http\HttpTelemetry.cs (1)
58request.RequestUri.Scheme,
System\Net\Http\Metrics\MetricsHandler.cs (1)
141tags.Add("url.scheme", requestUri.Scheme);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
253if (_proxyUri != null && HttpUtilities.IsSupportedSecureScheme(_proxyUri.Scheme))
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
332Debug.Assert(request.RequestUri.Scheme == Uri.UriSchemeHttp);
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (5)
268if (HttpUtilities.IsSupportedSecureScheme(uri.Scheme)) 286Debug.Assert(HttpUtilities.IsSupportedProxyScheme(proxyUri.Scheme)); 287if (HttpUtilities.IsSocksScheme(proxyUri.Scheme)) 301if (HttpUtilities.IsNonSecureWebSocketScheme(uri.Scheme)) 410if (proxyUri != null && !HttpUtilities.IsSupportedProxyScheme(proxyUri.Scheme))
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.cs (1)
292return HttpUtilities.IsSupportedNonSecureScheme(uri.Scheme) ? _httpProxyUri : _httpsProxyUri;
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (2)
132if (HttpUtilities.IsSupportedSecureScheme(requestUri.Scheme) && !HttpUtilities.IsSupportedSecureScheme(location.Scheme))
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (2)
678if (!HttpUtilities.IsSupportedScheme(requestUri.Scheme)) 680return new NotSupportedException(SR.Format(SR.net_http_unsupported_requesturi_scheme, requestUri.Scheme));
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (4)
38NetworkCredential? credentials = proxyCredentials?.GetCredential(proxyUri, proxyUri.Scheme); 40if (string.Equals(proxyUri.Scheme, "socks5", StringComparison.OrdinalIgnoreCase)) 44else if (string.Equals(proxyUri.Scheme, "socks4a", StringComparison.OrdinalIgnoreCase)) 48else if (string.Equals(proxyUri.Scheme, "socks4", StringComparison.OrdinalIgnoreCase))
System.Net.HttpListener (1)
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
176_requestUri = HttpListenerRequestUriBuilder.GetRequestUri(_rawUrl, _requestUri.Scheme,
System.Net.Primitives (4)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (2)
63if (uriPrefix.Scheme != uri.Scheme || uriPrefix.Host != uri.Host || uriPrefix.Port != uri.Port)
System\Net\CookieContainer.cs (2)
800bool isSecure = (uri.Scheme == UriScheme.Https || uri.Scheme == UriScheme.Wss);
System.Net.Requests (9)
System\Net\FileWebRequest.cs (1)
33if (uri.Scheme != (object)Uri.UriSchemeFile)
System\Net\FtpWebRequest.cs (1)
489if ((object)uri.Scheme != (object)Uri.UriSchemeFtp)
System\Net\HttpWebRequest.cs (1)
1627string s = Address.Scheme + "://" + hostName + Address.PathAndQuery;
System\Net\ServicePoint\ServicePoint.cs (1)
26ConnectionName = address.Scheme;
System\Net\ServicePoint\ServicePointManager.cs (2)
197$"{address.Scheme}://{address.DnsSafeHost}" : 198$"{address.Scheme}://{address.DnsSafeHost}:{address.Port}";
System\Net\WebRequest.cs (3)
89LookupUri = requestUri.Scheme + ':'; 209if ((requestUri.Scheme != "http") && (requestUri.Scheme != "https"))
System.Net.Security (3)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
158if (!IsAllowedScheme(uri.Scheme)) 290if (!IsAllowedScheme(location.Scheme))
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
224if (uri.Scheme == UriScheme.Http)
System.Net.WebClient (5)
System\Net\WebClient.cs (5)
571bool needsHeaderAndBoundary = (uri.Scheme != Uri.UriSchemeFile); 949if (request.RequestUri.Scheme == Uri.UriSchemeFile) 1016if (request.RequestUri.Scheme == Uri.UriSchemeFile) 1171return string.Equals(uri.Scheme, Uri.UriSchemeFtp, StringComparison.Ordinal) ? 1470bool needsHeaderAndBoundary = (uri.Scheme != Uri.UriSchemeFile);
System.Net.WebProxy (3)
System\Net\WebProxy.cs (3)
171int lengthRequired = input.Scheme.Length + 3 + input.Host.Length; 180url.TryWrite($"{input.Scheme}://{input.Host}", out charsWritten) : 181url.TryWrite($"{input.Scheme}://{input.Host}:{(uint)input.Port}", out charsWritten);
System.Net.WebSockets.Client (4)
System\Net\WebSockets\ClientWebSocket.cs (2)
102if (uri.Scheme != UriScheme.Ws && uri.Scheme != UriScheme.Wss)
System\Net\WebSockets\WebSocketHandle.Managed.cs (2)
71bool tryDowngrade = uri.Scheme == UriScheme.Ws && (options.HttpVersion == HttpVersion.Version11 || options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrLower); 81|| (options.HttpVersion == HttpVersion.Version11 && options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrHigher && uri.Scheme == UriScheme.Wss))
System.Private.Uri (7)
System\Uri.cs (5)
1849if ((Scheme == uri.Scheme) && (Host == uri.Host) && (Port == uri.Port)) 4767return basePart.Scheme + ':' + relativePart; 4978if ((Scheme == toUri.Scheme) && (Host == toUri.Host) && (Port == toUri.Port))
System\UriBuilder.cs (1)
281_scheme = _uri.Scheme;
System\UriExt.cs (1)
880newUriString = baseUri.Scheme + prefix + relativeStr;
System.Private.Xml (4)
System\Xml\XmlDownloadManager.cs (2)
15if (uri.Scheme == "file") 29if (uri.Scheme == "file")
System\Xml\XmlResolver.FileSystemResolver.cs (2)
32&& absoluteUri.Scheme == "file") 44if (absoluteUri.Scheme == "file")
System.Security.Cryptography (4)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (2)
158if (!IsAllowedScheme(uri.Scheme)) 290if (!IsAllowedScheme(location.Scheme))
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
345uri.Scheme == "http")
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (1)
1247uri.Scheme == "http")
System.ServiceModel.NetFramingBase (3)
System\ServiceModel\Channels\NetFramingTransportChannelFactory.cs (3)
369if (via.Scheme != Scheme) 372if (string.Compare(via.Scheme, Scheme, StringComparison.OrdinalIgnoreCase) != 0) 375via.Scheme, Scheme));
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
425if (uri.Scheme != Uri.UriSchemeNetPipe)
System.Windows.Forms (3)
System\Windows\Forms\Help\Help.cs (3)
252if (file is not null && file.Scheme == "file") 276if (file is not null && file.Scheme == "file") 299if (file is null || file.Scheme == "file")