23 instantiations of EntityTagHeaderValue
Microsoft.AspNetCore.Mvc.FunctionalTests (12)
FileResultTests.cs (12)
229httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 249httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\"")); 281httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 450httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 470httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\"")); 500httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 654httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 674httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\"")); 706httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 804httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 827httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\"")); 910httpRequestMessage.Headers.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\""));
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheTests.cs (2)
760client.DefaultRequestHeaders.IfNoneMatch.Add(new System.Net.Http.Headers.EntityTagHeaderValue("\"E1\"")); 783client.DefaultRequestHeaders.IfNoneMatch.Add(new System.Net.Http.Headers.EntityTagHeaderValue("\"E2\""));
Microsoft.AspNetCore.ResponseCaching.Tests (2)
ResponseCachingTests.cs (2)
711client.DefaultRequestHeaders.IfNoneMatch.Add(new System.Net.Http.Headers.EntityTagHeaderValue("\"E1\"")); 736client.DefaultRequestHeaders.IfNoneMatch.Add(new System.Net.Http.Headers.EntityTagHeaderValue("\"E2\""));
Microsoft.AspNetCore.StaticAssets.Tests (2)
StaticAssetsIntegrationTests.cs (2)
830req2.Headers.IfNoneMatch.Add(new EntityTagHeaderValue("\"fake\"")); 840req4.Headers.IfNoneMatch.Add(new EntityTagHeaderValue("\"fake\""));
System.Net.Http (5)
System\Net\Http\Headers\EntityTagHeaderValue.cs (4)
15public static EntityTagHeaderValue Any { get; } = new EntityTagHeaderValue("*", isWeak: false, false); 24new EntityTagHeaderValue(tag, isWeak); 131parsedValue = new EntityTagHeaderValue(input.Substring(current, tagLength), isWeak, false); 140object ICloneable.Clone() => ReferenceEquals(this, Any) ? Any : new EntityTagHeaderValue(this);
System\Net\Http\Headers\RangeConditionHeaderValue.cs (1)
32: this(new EntityTagHeaderValue(entityTag))
25 references to EntityTagHeaderValue
netstandard (1)
netstandard.cs (1)
1102[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.EntityTagHeaderValue))]
System.Net.Http (24)
System\Net\Http\Headers\EntityTagHeaderValue.cs (8)
15public static EntityTagHeaderValue Any { get; } = new EntityTagHeaderValue("*", isWeak: false, false); 45private EntityTagHeaderValue(EntityTagHeaderValue source) 57obj is EntityTagHeaderValue other && 65public static EntityTagHeaderValue Parse(string input) 68return (EntityTagHeaderValue)GenericHeaderParser.SingleValueEntityTagParser.ParseValue( 72public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out EntityTagHeaderValue? parsedValue) 79parsedValue = (EntityTagHeaderValue)output!; 85internal static int GetEntityTagLength(string? input, int startIndex, out EntityTagHeaderValue? parsedValue)
System\Net\Http\Headers\GenericHeaderParser.cs (5)
93int resultLength = EntityTagHeaderValue.GetEntityTagLength(value, startIndex, out EntityTagHeaderValue? temp); 96if (temp == EntityTagHeaderValue.Any) 111int resultLength = EntityTagHeaderValue.GetEntityTagLength(value, startIndex, out EntityTagHeaderValue? temp);
System\Net\Http\Headers\HttpRequestHeaders.cs (4)
125public HttpHeaderValueCollection<EntityTagHeaderValue> IfMatch => 126GetSpecializedCollection(IfMatchSlot, static thisRef => new HttpHeaderValueCollection<EntityTagHeaderValue>(KnownHeaders.IfMatch.Descriptor, thisRef)); 134public HttpHeaderValueCollection<EntityTagHeaderValue> IfNoneMatch => 135GetSpecializedCollection(IfNoneMatchSlot, static thisRef => new HttpHeaderValueCollection<EntityTagHeaderValue>(KnownHeaders.IfNoneMatch.Descriptor, thisRef));
System\Net\Http\Headers\HttpResponseHeaders.cs (2)
41public EntityTagHeaderValue? ETag 43get { return (EntityTagHeaderValue?)GetSingleParsedValue(KnownHeaders.ETag.Descriptor); }
System\Net\Http\Headers\RangeConditionHeaderValue.cs (5)
13private readonly EntityTagHeaderValue? _entityTag; 17public EntityTagHeaderValue? EntityTag => _entityTag; 24public RangeConditionHeaderValue(EntityTagHeaderValue entityTag) 89EntityTagHeaderValue? entityTag = null; 99int entityTagLength = EntityTagHeaderValue.GetEntityTagLength(input, current, out entityTag);