22 references to Compare
Microsoft.AspNetCore.Http.Results (2)
src\Shared\ResultsHelpers\FileResultHelper.cs (2)
184else if (etag != null && ifRange.EntityTag != null && !ifRange.EntityTag.Compare(etag, useStrongComparison: true)) 273if (entityTag.Equals(EntityTagHeaderValue.Any) || entityTag.Compare(etag, useStrongComparison))
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\ResultsHelpers\FileResultHelper.cs (2)
184else if (etag != null && ifRange.EntityTag != null && !ifRange.EntityTag.Compare(etag, useStrongComparison: true)) 273if (entityTag.Equals(EntityTagHeaderValue.Any) || entityTag.Compare(etag, useStrongComparison))
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheMiddleware.cs (1)
542if (eTag.Compare(requestETag, useStrongComparison: false))
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
449if (eTag.Compare(requestETag, useStrongComparison: false))
Microsoft.AspNetCore.StaticAssets (3)
StaticAssetsInvoker.cs (3)
310if (etag.Equals(EntityTagHeaderValue.Any) || etag.Compare(_etag, useStrongComparison: false)) 326if (etag.Equals(EntityTagHeaderValue.Any) || etag.Compare(_etag, useStrongComparison: false)) 381else if (_etag != null && ifRangeHeader.EntityTag != null && !ifRangeHeader.EntityTag.Compare(_etag, useStrongComparison: true))
Microsoft.AspNetCore.StaticFiles (3)
StaticFileContext.cs (3)
154if (etag.Equals(EntityTagHeaderValue.Any) || etag.Compare(_etag, useStrongComparison: true)) 169if (etag.Equals(EntityTagHeaderValue.Any) || etag.Compare(_etag, useStrongComparison: true)) 218else if (_etag != null && ifRangeHeader.EntityTag != null && !ifRangeHeader.EntityTag.Compare(_etag, useStrongComparison: true))
Microsoft.Net.Http.Headers.Tests (10)
EntityTagHeaderValueTest.cs (10)
100Assert.False(EntityTagHeaderValue.Any.Compare(null, useStrongComparison: true)); 101Assert.False(EntityTagHeaderValue.Any.Compare(null, useStrongComparison: false)); 123Assert.False(left.Compare(right, useStrongComparison: true)); 124Assert.False(right.Compare(left, useStrongComparison: true)); 142Assert.True(left.Compare(right, useStrongComparison: true)); 143Assert.True(right.Compare(left, useStrongComparison: true)); 163Assert.False(left.Compare(right, useStrongComparison: false)); 164Assert.False(right.Compare(left, useStrongComparison: false)); 184Assert.True(left.Compare(right, useStrongComparison: false)); 185Assert.True(right.Compare(left, useStrongComparison: false));