15 writes to CachedEntryAge
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
147context.CachedEntryAge = cachedEntryAge > TimeSpan.Zero ? cachedEntryAge : TimeSpan.Zero;
Microsoft.AspNetCore.ResponseCaching.Tests (14)
ResponseCachingPolicyProviderTests.cs (14)
492context.CachedEntryAge = TimeSpan.MaxValue; 506context.CachedEntryAge = TimeSpan.MaxValue; 524context.CachedEntryAge = TimeSpan.Zero; 544context.CachedEntryAge = TimeSpan.FromSeconds(9); 564context.CachedEntryAge = TimeSpan.FromSeconds(10); 586context.CachedEntryAge = TimeSpan.FromSeconds(11); 607context.CachedEntryAge = TimeSpan.FromSeconds(5); 639context.CachedEntryAge = TimeSpan.FromSeconds(3); 662context.CachedEntryAge = TimeSpan.FromSeconds(5); 686context.CachedEntryAge = TimeSpan.FromSeconds(6); 709context.CachedEntryAge = TimeSpan.FromSeconds(6); 733context.CachedEntryAge = TimeSpan.FromSeconds(6); 758context.CachedEntryAge = TimeSpan.FromSeconds(6); 783context.CachedEntryAge = TimeSpan.FromSeconds(6);
6 references to CachedEntryAge
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingMiddleware.cs (1)
181response.Headers.Age = HeaderUtilities.FormatNonNegativeInt64(context.CachedEntryAge.Value.Ticks / TimeSpan.TicksPerSecond);
ResponseCachingPolicyProvider.cs (1)
168var age = context.CachedEntryAge!.Value;
Microsoft.AspNetCore.ResponseCaching.Tests (4)
ResponseCachingPolicyProviderTests.cs (4)
545context.ResponseTime = utcNow + context.CachedEntryAge; 565context.ResponseTime = utcNow + context.CachedEntryAge; 587context.ResponseTime = utcNow + context.CachedEntryAge; 608context.ResponseTime = utcNow + context.CachedEntryAge;