File: Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LoggerMessage.g.cs
Web Access
Project: ..\..\..\src\aspnetcore\src\Identity\Core\src\Microsoft.AspNetCore.Identity.csproj (Microsoft.AspNetCore.Identity)
// <auto-generated/>
#nullable enable
 
namespace Microsoft.AspNetCore.Routing
{
    partial class PasskeyEndpointsEndpointRouteBuilderExtensions
    {
        partial class Log
        {
            /// <summary> This API supports the logging infrastructure and is not intended to be used directly from your code. It is subject to change in the future. </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Extensions.Logging.Generators", "12.0.14.46214")]
            [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
            private readonly struct __PasskeyEndpointsServerDomainMismatchStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
            {
                private readonly string _serverDomain;
                private readonly string _host;
 
                public __PasskeyEndpointsServerDomainMismatchStruct(string serverDomain, string host)
                {
                    this._serverDomain = serverDomain;
                    this._host = host;
 
                }
 
                public override string ToString()
                {
                    var Host = this._host;
                    var ServerDomain = this._serverDomain;
 
                    return string.Create(global::System.Globalization.CultureInfo.InvariantCulture, $"The well-known passkey endpoints document is being served for the host '{Host}', which does not match the configured relying party identifier '{ServerDomain}'. Credential managers only request the document at the relying party's origin, so it will not be found unless it is also served there.");
                }
 
                public static readonly global::System.Func<__PasskeyEndpointsServerDomainMismatchStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString();
 
                public int Count => 3;
 
                public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
                {
                    get => index switch
                    {
                        0 => new global::System.Collections.Generic.KeyValuePair<string, object?>("ServerDomain", this._serverDomain),
                        1 => new global::System.Collections.Generic.KeyValuePair<string, object?>("Host", this._host),
                        2 => new global::System.Collections.Generic.KeyValuePair<string, object?>("{OriginalFormat}", "The well-known passkey endpoints document is being served for the host '{Host}', which does not match the configured relying party identifier '{ServerDomain}'. Credential managers only request the document at the relying party's origin, so it will not be found unless it is also served there."),
 
                        _ => throw new global::System.IndexOutOfRangeException(),  // return the same exception LoggerMessage.Define returns in this case
                    };
            }
 
                public global::System.Collections.Generic.IEnumerator<global::System.Collections.Generic.KeyValuePair<string, object?>> GetEnumerator()
                {
                    for (int i = 0; i < 3; i++)
                    {
                        yield return this[i];
                    }
                }
 
                global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() => GetEnumerator();
            }
 
            /// <summary>
            /// <para><b>Message:</b> The well-known passkey endpoints document is being served for the host &apos;{Host}&apos;, which does not match the configured relying party identifier &apos;{ServerDomain}&apos;. Credential managers only request the document at the relying party&apos;s origin, so it will not be found unless it is also served there.</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 PasskeyEndpointsServerDomainMismatch(global::Microsoft.Extensions.Logging.ILogger logger, string serverDomain, string host)
            {
                if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
                {
                    logger.Log(
                        global::Microsoft.Extensions.Logging.LogLevel.Warning,
                        new global::Microsoft.Extensions.Logging.EventId(1, "PasskeyEndpointsServerDomainMismatch"),
                        new __PasskeyEndpointsServerDomainMismatchStruct(serverDomain, host),
                        null,
                        __PasskeyEndpointsServerDomainMismatchStruct.Format);
                }
            }
            [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?> __PasskeyEndpointsMappedOffTheWellKnownPathCallback =
                global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(2, "PasskeyEndpointsMappedOffTheWellKnownPath"), "The well-known passkey endpoints document is mapped to '{Pattern}' rather than '{WellKnownPath}'. Credential managers only request the document at the root of the origin, so it will not be found. Call MapWellKnownPasskeyEndpoints on the application rather than on a route group with a prefix.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
 
            /// <summary>
            /// <para><b>Message:</b> The well-known passkey endpoints document is mapped to &apos;{Pattern}&apos; rather than &apos;{WellKnownPath}&apos;. Credential managers only request the document at the root of the origin, so it will not be found. Call MapWellKnownPasskeyEndpoints on the application rather than on a route group with a prefix.</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 PasskeyEndpointsMappedOffTheWellKnownPath(global::Microsoft.Extensions.Logging.ILogger logger, string? pattern, string wellKnownPath)
            {
                if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error))
                {
                    __PasskeyEndpointsMappedOffTheWellKnownPathCallback(logger, pattern, wellKnownPath, null);
                }
            }
        }
    }
}
namespace Microsoft.Extensions.Logging
{
    partial class LoggingExtensions
    {
        [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?> __InvalidExpirationTimeCallback =
            global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(0, "InvalidExpirationTime"), "ValidateAsync failed: the expiration time is invalid.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
 
        /// <summary>
        /// <para><b>Message:</b> ValidateAsync failed: the expiration time is invalid.</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 InvalidExpirationTime(this global::Microsoft.Extensions.Logging.ILogger logger)
        {
            if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
            {
                __InvalidExpirationTimeCallback(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?> __UserIdsNotEqualsCallback =
            global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(1, "UserIdsNotEquals"), "ValidateAsync failed: did not find expected UserId.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
 
        /// <summary>
        /// <para><b>Message:</b> ValidateAsync failed: did not find expected UserId.</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 UserIdsNotEquals(this global::Microsoft.Extensions.Logging.ILogger logger)
        {
            if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
            {
                __UserIdsNotEqualsCallback(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, string, global::System.Exception?> __PurposeNotEqualsCallback =
            global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "PurposeNotEquals"), "ValidateAsync failed: did not find expected purpose. '{ActualPurpose}' does not match the expected purpose '{ExpectedPurpose}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
 
        /// <summary>
        /// <para><b>Message:</b> ValidateAsync failed: did not find expected purpose. &apos;{ActualPurpose}&apos; does not match the expected purpose &apos;{ExpectedPurpose}&apos;.</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 PurposeNotEquals(this global::Microsoft.Extensions.Logging.ILogger logger, string actualPurpose, string expectedPurpose)
        {
            if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
            {
                __PurposeNotEqualsCallback(logger, actualPurpose, expectedPurpose, 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?> __UnexpectedEndOfInputCallback =
            global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(3, "UnexpectedEndOfInput"), "ValidateAsync failed: unexpected end of input.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
 
        /// <summary>
        /// <para><b>Message:</b> ValidateAsync failed: unexpected end of input.</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 UnexpectedEndOfInput(this global::Microsoft.Extensions.Logging.ILogger logger)
        {
            if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
            {
                __UnexpectedEndOfInputCallback(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?> __SecurityStampNotEqualsCallback =
            global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(4, "SecurityStampNotEquals"), "ValidateAsync failed: did not find expected security stamp.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
 
        /// <summary>
        /// <para><b>Message:</b> ValidateAsync failed: did not find expected security stamp.</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 SecurityStampNotEquals(this global::Microsoft.Extensions.Logging.ILogger logger)
        {
            if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
            {
                __SecurityStampNotEqualsCallback(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?> __SecurityStampIsNotEmptyCallback =
            global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(5, "SecurityStampIsNotEmpty"), "ValidateAsync failed: the expected stamp is not empty.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
 
        /// <summary>
        /// <para><b>Message:</b> ValidateAsync failed: the expected stamp is not empty.</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 SecurityStampIsNotEmpty(this global::Microsoft.Extensions.Logging.ILogger logger)
        {
            if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
            {
                __SecurityStampIsNotEmptyCallback(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?> __UnhandledExceptionCallback =
            global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(6, "UnhandledException"), "ValidateAsync failed: unhandled exception was thrown.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
 
        /// <summary>
        /// <para><b>Message:</b> ValidateAsync failed: unhandled exception was thrown.</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 UnhandledException(this global::Microsoft.Extensions.Logging.ILogger logger)
        {
            if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Debug))
            {
                __UnhandledExceptionCallback(logger, null);
            }
        }
    }
}