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