2 instantiations of StringSegmentComparer
Microsoft.Extensions.Primitives (2)
StringSegmentComparer.cs (2)
18= new StringSegmentComparer(StringComparison.Ordinal, StringComparer.Ordinal); 24= new StringSegmentComparer(StringComparison.OrdinalIgnoreCase, StringComparer.OrdinalIgnoreCase);
23 references to StringSegmentComparer
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
18private static readonly Dictionary<StringSegment, string> _encodingExtensionMap = new Dictionary<StringSegment, string>(StringSegmentComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.HostFiltering (1)
MiddlewareConfigurationManager.cs (1)
75if (!results.Contains(host, StringSegmentComparer.OrdinalIgnoreCase))
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
90if (!allowedHosts.Contains(host, StringSegmentComparer.OrdinalIgnoreCase))
Microsoft.Extensions.Primitives (4)
StringSegmentComparer.cs (4)
15/// Gets a <see cref="StringSegmentComparer"/> object that performs a case-sensitive ordinal <see cref="StringSegment"/> comparison. 17public static StringSegmentComparer Ordinal { get; } 21/// Gets a <see cref="StringSegmentComparer"/> object that performs a case-insensitive ordinal <see cref="StringSegment"/> comparison. 23public static StringSegmentComparer OrdinalIgnoreCase { get; }
Microsoft.Net.Http.Headers (16)
CacheControlHeaderValue.cs (4)
419StringSegmentComparer.OrdinalIgnoreCase)) 425StringSegmentComparer.OrdinalIgnoreCase)) 460result = result ^ StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(noCacheHeader); 468result = result ^ StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(privateHeader);
ContentDispositionHeaderValue.cs (1)
248return StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_dispositionType) ^ NameValueHeaderValue.GetHashCode(_parameters);
ContentRangeHeaderValue.cs (1)
158var result = StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(Unit);
MediaTypeHeaderValue.cs (1)
491return StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_mediaType) ^ NameValueHeaderValue.GetHashCode(_parameters);
NameValueHeaderValue.cs (2)
120var nameHashCode = StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_name); 131return nameHashCode ^ StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_value);
RangeHeaderValue.cs (1)
119var result = StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_unit);
SetCookieHeaderValue.cs (5)
732&& HeaderUtilities.AreEqualCollections(_extensions, other._extensions, StringSegmentComparer.OrdinalIgnoreCase); 738var hash = StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_name) 739^ StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_value) 742^ (Domain != null ? StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(Domain) : 0) 743^ (Path != null ? StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(Path) : 0)
StringWithQualityHeaderValue.cs (1)
110var result = StringSegmentComparer.OrdinalIgnoreCase.GetHashCode(_value);