// <auto-generated/> #nullable enable namespace Microsoft.AspNetCore.Antiforgery { partial class AntiforgeryLoggerExtensions { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ValidationFailedCallback = global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "ValidationFailed"), "Antiforgery validation failed with message '{Message}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); /// <summary> /// <para><b>Message:</b> Antiforgery validation failed with message '{Message}'.</para> /// <para><b>Level:</b> Warning</para> /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] public static partial void ValidationFailed(this global::Microsoft.Extensions.Logging.ILogger logger, string message) { if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) { __ValidationFailedCallback(logger, message, null); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ValidatedAntiforgeryTokenCallback = global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "Validated"), "Antiforgery successfully validated a request.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); /// <summary> /// <para><b>Message:</b> Antiforgery successfully validated a request.</para> /// <para><b>Level:</b> Debug</para> /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] public static partial void ValidatedAntiforgeryToken(this global::Microsoft.Extensions.Logging.ILogger logger) { if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) { __ValidatedAntiforgeryTokenCallback(logger, null); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __MissingCookieTokenCallback = global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "MissingCookieToken"), "The required antiforgery cookie '{CookieName}' is not present.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); /// <summary> /// <para><b>Message:</b> The required antiforgery cookie '{CookieName}' is not present.</para> /// <para><b>Level:</b> Warning</para> /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] public static partial void MissingCookieToken(this global::Microsoft.Extensions.Logging.ILogger logger, string? cookieName) { if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) { __MissingCookieTokenCallback(logger, cookieName, null); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __MissingRequestTokenCallback = global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(4, "MissingRequestToken"), "The required antiforgery request token was not provided in either form field '{FormFieldName}' or header '{HeaderName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); /// <summary> /// <para><b>Message:</b> The required antiforgery request token was not provided in either form field '{FormFieldName}' or header '{HeaderName}'.</para> /// <para><b>Level:</b> Warning</para> /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] public static partial void MissingRequestToken(this global::Microsoft.Extensions.Logging.ILogger logger, string formFieldName, string? headerName) { if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) { __MissingRequestTokenCallback(logger, formFieldName, headerName, null); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NewCookieTokenCallback = global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "NewCookieToken"), "A new antiforgery cookie token was created.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); /// <summary> /// <para><b>Message:</b> A new antiforgery cookie token was created.</para> /// <para><b>Level:</b> Debug</para> /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] public static partial void NewCookieToken(this global::Microsoft.Extensions.Logging.ILogger logger) { if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) { __NewCookieTokenCallback(logger, null); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ReusedCookieTokenCallback = global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "ReusedCookieToken"), "An antiforgery cookie token was reused.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); /// <summary> /// <para><b>Message:</b> An antiforgery cookie token was reused.</para> /// <para><b>Level:</b> Debug</para> /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] public static partial void ReusedCookieToken(this global::Microsoft.Extensions.Logging.ILogger logger) { if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) { __ReusedCookieTokenCallback(logger, null); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TokenDeserializeExceptionCallback = global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(7, "TokenDeserializeException"), "An exception was thrown while deserializing the token.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); /// <summary> /// <para><b>Message:</b> An exception was thrown while deserializing the token.</para> /// <para><b>Level:</b> Error</para> /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] public static partial void TokenDeserializeException(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) { if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) { __TokenDeserializeExceptionCallback(logger, exception); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseCacheHeadersOverridenToNoCacheCallback = global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(8, "ResponseCacheHeadersOverridenToNoCache"), "The 'Cache-Control' and 'Pragma' headers have been overridden and set to 'no-cache, no-store' and 'no-cache' respectively to prevent caching of this response. Any response that uses antiforgery should not be cached.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); /// <summary> /// <para><b>Message:</b> The 'Cache-Control' and 'Pragma' headers have been overridden and set to 'no-cache, no-store' and 'no-cache' respectively to prevent caching of this response. Any response that uses antiforgery should not be cached.</para> /// <para><b>Level:</b> Warning</para> /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] public static partial void ResponseCacheHeadersOverridenToNoCache(this global::Microsoft.Extensions.Logging.ILogger logger) { if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) { __ResponseCacheHeadersOverridenToNoCacheCallback(logger, null); } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToDeserialzeTokensCallback = global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(9, "FailedToDeserialzeTokens"), "Failed to deserialize antiforgery tokens.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); /// <summary> /// <para><b>Message:</b> Failed to deserialize antiforgery tokens.</para> /// <para><b>Level:</b> Debug</para> /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")] public static partial void FailedToDeserialzeTokens(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) { if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug)) { __FailedToDeserialzeTokensCallback(logger, exception); } } } }