49 references to TriState
System (49)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (49)
152if (Common.ValidateCacheByVaryHeader(ctx) == TriState.Invalid) { 165if (Common.ValidateCacheBySpecialCases(ctx) == TriState.Invalid) 350if (Common.OnUpdateCache(ctx, resp) != TriState.Valid) { 670internal static TriState OnUpdateCache(HttpRequestCacheValidator ctx, HttpWebResponse resp) { 678return TriState.Unknown; 686return TriState.Unknown; 691return TriState.Unknown; 698return TriState.Unknown; 713return TriState.Unknown; 737return TriState.Unknown; 750return TriState.Valid; 754TriState result = TriState.Unknown; 770return TriState.Unknown; 775result = TriState.Valid; 779result = TriState.Valid; 793return TriState.Unknown; 796return TriState.Valid; 801return TriState.Valid; 819return TriState.Unknown; 829return TriState.Unknown; 851return TriState.Valid; 863if (result != TriState.Valid) { 937internal static TriState ValidateCacheBySpecialCases(HttpRequestCacheValidator ctx) { 951return TriState.Invalid; 989return TriState.Invalid; 1021return TriState.Invalid; 1026return TriState.Invalid; 1029return TriState.Valid; 1283if (ValidateCacheBySpecialCases(ctx) != TriState.Valid) { 1333internal static TriState ValidateCacheByVaryHeader(HttpRequestCacheValidator ctx) { 1336return TriState.Unknown; 1345return TriState.Invalid; 1350return TriState.Invalid; 1356return TriState.Invalid; 1389return TriState.Invalid; 1396return TriState.Invalid; 1402return TriState.Valid; 1411TriState isPartial = CheckForRangeRequest(ctx, out ranges); 1413if (isPartial == TriState.Invalid) { 1418if(isPartial == TriState.Valid) { 1448TriState isRange = CheckForRangeRequest(ctx, out ranges); 1450if (isRange == TriState.Unknown) { 1454if (isRange == TriState.Invalid) { 1533private static TriState CheckForRangeRequest(HttpRequestCacheValidator ctx, out string ranges) { 1540return TriState.Invalid; 1548return TriState.Unknown; 1553return TriState.Valid; 1556return TriState.Unknown;