29 instantiations of LoggedMessage
Microsoft.AspNetCore.ResponseCaching.Tests (29)
TestUtils.cs (29)
275
internal static LoggedMessage RequestMethodNotCacheable => new
LoggedMessage
(1, LogLevel.Debug);
276
internal static LoggedMessage RequestWithAuthorizationNotCacheable => new
LoggedMessage
(2, LogLevel.Debug);
277
internal static LoggedMessage RequestWithNoCacheNotCacheable => new
LoggedMessage
(3, LogLevel.Debug);
278
internal static LoggedMessage RequestWithPragmaNoCacheNotCacheable => new
LoggedMessage
(4, LogLevel.Debug);
279
internal static LoggedMessage ExpirationMinFreshAdded => new
LoggedMessage
(5, LogLevel.Debug);
280
internal static LoggedMessage ExpirationSharedMaxAgeExceeded => new
LoggedMessage
(6, LogLevel.Debug);
281
internal static LoggedMessage ExpirationMustRevalidate => new
LoggedMessage
(7, LogLevel.Debug);
282
internal static LoggedMessage ExpirationMaxStaleSatisfied => new
LoggedMessage
(8, LogLevel.Debug);
283
internal static LoggedMessage ExpirationMaxAgeExceeded => new
LoggedMessage
(9, LogLevel.Debug);
284
internal static LoggedMessage ExpirationExpiresExceeded => new
LoggedMessage
(10, LogLevel.Debug);
285
internal static LoggedMessage ResponseWithoutPublicNotCacheable => new
LoggedMessage
(11, LogLevel.Debug);
286
internal static LoggedMessage ResponseWithNoStoreNotCacheable => new
LoggedMessage
(12, LogLevel.Debug);
287
internal static LoggedMessage ResponseWithNoCacheNotCacheable => new
LoggedMessage
(13, LogLevel.Debug);
288
internal static LoggedMessage ResponseWithSetCookieNotCacheable => new
LoggedMessage
(14, LogLevel.Debug);
289
internal static LoggedMessage ResponseWithVaryStarNotCacheable => new
LoggedMessage
(15, LogLevel.Debug);
290
internal static LoggedMessage ResponseWithPrivateNotCacheable => new
LoggedMessage
(16, LogLevel.Debug);
291
internal static LoggedMessage ResponseWithUnsuccessfulStatusCodeNotCacheable => new
LoggedMessage
(17, LogLevel.Debug);
292
internal static LoggedMessage NotModifiedIfNoneMatchStar => new
LoggedMessage
(18, LogLevel.Debug);
293
internal static LoggedMessage NotModifiedIfNoneMatchMatched => new
LoggedMessage
(19, LogLevel.Debug);
294
internal static LoggedMessage NotModifiedIfModifiedSinceSatisfied => new
LoggedMessage
(20, LogLevel.Debug);
295
internal static LoggedMessage NotModifiedServed => new
LoggedMessage
(21, LogLevel.Information);
296
internal static LoggedMessage CachedResponseServed => new
LoggedMessage
(22, LogLevel.Information);
297
internal static LoggedMessage GatewayTimeoutServed => new
LoggedMessage
(23, LogLevel.Information);
298
internal static LoggedMessage NoResponseServed => new
LoggedMessage
(24, LogLevel.Information);
299
internal static LoggedMessage VaryByRulesUpdated => new
LoggedMessage
(25, LogLevel.Debug);
300
internal static LoggedMessage ResponseCached => new
LoggedMessage
(26, LogLevel.Information);
301
internal static LoggedMessage ResponseNotCached => new
LoggedMessage
(27, LogLevel.Information);
302
internal static LoggedMessage ResponseContentLengthMismatchNotCached => new
LoggedMessage
(28, LogLevel.Warning);
303
internal static LoggedMessage ExpirationInfiniteMaxStaleSatisfied => new
LoggedMessage
(29, LogLevel.Debug);
79 references to LoggedMessage
Microsoft.AspNetCore.ResponseCaching.Tests (79)
ResponseCachingMiddlewareTests.cs (24)
33
LoggedMessage
.GatewayTimeoutServed);
48
LoggedMessage
.NoResponseServed);
72
LoggedMessage
.CachedResponseServed);
101
LoggedMessage
.CachedResponseServed);
121
LoggedMessage
.NoResponseServed);
149
LoggedMessage
.CachedResponseServed);
173
LoggedMessage
.NotModifiedServed);
214
LoggedMessage
.NotModifiedIfModifiedSinceSatisfied,
215
LoggedMessage
.NotModifiedIfModifiedSinceSatisfied);
248
LoggedMessage
.NotModifiedIfModifiedSinceSatisfied,
249
LoggedMessage
.NotModifiedIfModifiedSinceSatisfied);
268
LoggedMessage
.NotModifiedIfNoneMatchStar);
327
LoggedMessage
.NotModifiedIfNoneMatchMatched);
355
LoggedMessage
.NotModifiedIfNoneMatchMatched);
543
LoggedMessage
.VaryByRulesUpdated);
574
LoggedMessage
.VaryByRulesUpdated);
683
LoggedMessage
.VaryByRulesUpdated);
709
LoggedMessage
.ResponseCached);
738
LoggedMessage
.ResponseContentLengthMismatchNotCached);
771
LoggedMessage
.ResponseCached);
799
LoggedMessage
.ResponseCached);
819
LoggedMessage
.ResponseNotCached);
841
LoggedMessage
.ResponseNotCached);
870
LoggedMessage
.ResponseCached);
ResponseCachingPolicyProviderTests.cs (25)
64
LoggedMessage
.RequestMethodNotCacheable);
78
LoggedMessage
.RequestWithAuthorizationNotCacheable);
110
LoggedMessage
.RequestWithNoCacheNotCacheable);
124
LoggedMessage
.RequestWithPragmaNoCacheNotCacheable);
164
LoggedMessage
.ResponseWithoutPublicNotCacheable);
195
LoggedMessage
.ResponseWithNoCacheNotCacheable);
212
LoggedMessage
.ResponseWithNoStoreNotCacheable);
229
LoggedMessage
.ResponseWithSetCookieNotCacheable);
246
LoggedMessage
.ResponseWithVaryStarNotCacheable);
263
LoggedMessage
.ResponseWithPrivateNotCacheable);
357
LoggedMessage
.ResponseWithUnsuccessfulStatusCodeNotCacheable);
398
LoggedMessage
.ExpirationExpiresExceeded);
440
LoggedMessage
.ExpirationMaxAgeExceeded);
482
LoggedMessage
.ExpirationSharedMaxAgeExceeded);
535
LoggedMessage
.ExpirationExpiresExceeded);
577
LoggedMessage
.ExpirationMaxAgeExceeded);
621
LoggedMessage
.ExpirationSharedMaxAgeExceeded);
644
LoggedMessage
.ExpirationMinFreshAdded,
645
LoggedMessage
.ExpirationSharedMaxAgeExceeded);
667
LoggedMessage
.ExpirationMaxAgeExceeded);
691
LoggedMessage
.ExpirationMaxStaleSatisfied);
714
LoggedMessage
.ExpirationInfiniteMaxStaleSatisfied);
738
LoggedMessage
.ExpirationMaxAgeExceeded);
763
LoggedMessage
.ExpirationMustRevalidate);
788
LoggedMessage
.ExpirationMustRevalidate);
TestUtils.cs (30)
243
internal static void AssertLoggedMessages(IEnumerable<WriteContext> messages, params
LoggedMessage
[] expectedMessages)
275
internal static
LoggedMessage
RequestMethodNotCacheable => new LoggedMessage(1, LogLevel.Debug);
276
internal static
LoggedMessage
RequestWithAuthorizationNotCacheable => new LoggedMessage(2, LogLevel.Debug);
277
internal static
LoggedMessage
RequestWithNoCacheNotCacheable => new LoggedMessage(3, LogLevel.Debug);
278
internal static
LoggedMessage
RequestWithPragmaNoCacheNotCacheable => new LoggedMessage(4, LogLevel.Debug);
279
internal static
LoggedMessage
ExpirationMinFreshAdded => new LoggedMessage(5, LogLevel.Debug);
280
internal static
LoggedMessage
ExpirationSharedMaxAgeExceeded => new LoggedMessage(6, LogLevel.Debug);
281
internal static
LoggedMessage
ExpirationMustRevalidate => new LoggedMessage(7, LogLevel.Debug);
282
internal static
LoggedMessage
ExpirationMaxStaleSatisfied => new LoggedMessage(8, LogLevel.Debug);
283
internal static
LoggedMessage
ExpirationMaxAgeExceeded => new LoggedMessage(9, LogLevel.Debug);
284
internal static
LoggedMessage
ExpirationExpiresExceeded => new LoggedMessage(10, LogLevel.Debug);
285
internal static
LoggedMessage
ResponseWithoutPublicNotCacheable => new LoggedMessage(11, LogLevel.Debug);
286
internal static
LoggedMessage
ResponseWithNoStoreNotCacheable => new LoggedMessage(12, LogLevel.Debug);
287
internal static
LoggedMessage
ResponseWithNoCacheNotCacheable => new LoggedMessage(13, LogLevel.Debug);
288
internal static
LoggedMessage
ResponseWithSetCookieNotCacheable => new LoggedMessage(14, LogLevel.Debug);
289
internal static
LoggedMessage
ResponseWithVaryStarNotCacheable => new LoggedMessage(15, LogLevel.Debug);
290
internal static
LoggedMessage
ResponseWithPrivateNotCacheable => new LoggedMessage(16, LogLevel.Debug);
291
internal static
LoggedMessage
ResponseWithUnsuccessfulStatusCodeNotCacheable => new LoggedMessage(17, LogLevel.Debug);
292
internal static
LoggedMessage
NotModifiedIfNoneMatchStar => new LoggedMessage(18, LogLevel.Debug);
293
internal static
LoggedMessage
NotModifiedIfNoneMatchMatched => new LoggedMessage(19, LogLevel.Debug);
294
internal static
LoggedMessage
NotModifiedIfModifiedSinceSatisfied => new LoggedMessage(20, LogLevel.Debug);
295
internal static
LoggedMessage
NotModifiedServed => new LoggedMessage(21, LogLevel.Information);
296
internal static
LoggedMessage
CachedResponseServed => new LoggedMessage(22, LogLevel.Information);
297
internal static
LoggedMessage
GatewayTimeoutServed => new LoggedMessage(23, LogLevel.Information);
298
internal static
LoggedMessage
NoResponseServed => new LoggedMessage(24, LogLevel.Information);
299
internal static
LoggedMessage
VaryByRulesUpdated => new LoggedMessage(25, LogLevel.Debug);
300
internal static
LoggedMessage
ResponseCached => new LoggedMessage(26, LogLevel.Information);
301
internal static
LoggedMessage
ResponseNotCached => new LoggedMessage(27, LogLevel.Information);
302
internal static
LoggedMessage
ResponseContentLengthMismatchNotCached => new LoggedMessage(28, LogLevel.Warning);
303
internal static
LoggedMessage
ExpirationInfiniteMaxStaleSatisfied => new LoggedMessage(29, LogLevel.Debug);