// namespace Microsoft.Extensions.Identity.Core { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.Extensions.Identity.Core.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// Optimistic concurrency failure, object has been modified. /// internal static string ConcurrencyFailure { get => GetString("ConcurrencyFailure"); } /// /// Optimistic concurrency failure, object has been modified. /// internal static string FormatConcurrencyFailure() => GetString("ConcurrencyFailure"); /// /// An unknown failure has occurred. /// internal static string DefaultError { get => GetString("DefaultError"); } /// /// An unknown failure has occurred. /// internal static string FormatDefaultError() => GetString("DefaultError"); /// /// Email '{0}' is already taken. /// internal static string DuplicateEmail { get => GetString("DuplicateEmail"); } /// /// Email '{0}' is already taken. /// internal static string FormatDuplicateEmail(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateEmail"), p0); /// /// Role name '{0}' is already taken. /// internal static string DuplicateRoleName { get => GetString("DuplicateRoleName"); } /// /// Role name '{0}' is already taken. /// internal static string FormatDuplicateRoleName(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateRoleName"), p0); /// /// User name '{0}' is already taken. /// internal static string DuplicateUserName { get => GetString("DuplicateUserName"); } /// /// User name '{0}' is already taken. /// internal static string FormatDuplicateUserName(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateUserName"), p0); /// /// Email '{0}' is invalid. /// internal static string InvalidEmail { get => GetString("InvalidEmail"); } /// /// Email '{0}' is invalid. /// internal static string FormatInvalidEmail(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("InvalidEmail"), p0); /// /// Type {0} must derive from {1}<{2}>. /// internal static string InvalidManagerType { get => GetString("InvalidManagerType"); } /// /// Type {0} must derive from {1}<{2}>. /// internal static string FormatInvalidManagerType(object p0, object p1, object p2) => string.Format(CultureInfo.CurrentCulture, GetString("InvalidManagerType"), p0, p1, p2); /// /// The provided PasswordHasherCompatibilityMode is invalid. /// internal static string InvalidPasswordHasherCompatibilityMode { get => GetString("InvalidPasswordHasherCompatibilityMode"); } /// /// The provided PasswordHasherCompatibilityMode is invalid. /// internal static string FormatInvalidPasswordHasherCompatibilityMode() => GetString("InvalidPasswordHasherCompatibilityMode"); /// /// The iteration count must be a positive integer. /// internal static string InvalidPasswordHasherIterationCount { get => GetString("InvalidPasswordHasherIterationCount"); } /// /// The iteration count must be a positive integer. /// internal static string FormatInvalidPasswordHasherIterationCount() => GetString("InvalidPasswordHasherIterationCount"); /// /// Role name '{0}' is invalid. /// internal static string InvalidRoleName { get => GetString("InvalidRoleName"); } /// /// Role name '{0}' is invalid. /// internal static string FormatInvalidRoleName(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("InvalidRoleName"), p0); /// /// Invalid token. /// internal static string InvalidToken { get => GetString("InvalidToken"); } /// /// Invalid token. /// internal static string FormatInvalidToken() => GetString("InvalidToken"); /// /// User name '{0}' is invalid, can only contain letters or digits. /// internal static string InvalidUserName { get => GetString("InvalidUserName"); } /// /// User name '{0}' is invalid, can only contain letters or digits. /// internal static string FormatInvalidUserName(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("InvalidUserName"), p0); /// /// A user with this login already exists. /// internal static string LoginAlreadyAssociated { get => GetString("LoginAlreadyAssociated"); } /// /// A user with this login already exists. /// internal static string FormatLoginAlreadyAssociated() => GetString("LoginAlreadyAssociated"); /// /// AddIdentity must be called on the service collection. /// internal static string MustCallAddIdentity { get => GetString("MustCallAddIdentity"); } /// /// AddIdentity must be called on the service collection. /// internal static string FormatMustCallAddIdentity() => GetString("MustCallAddIdentity"); /// /// No IUserTokenProvider named '{0}' is registered. /// internal static string NoTokenProvider { get => GetString("NoTokenProvider"); } /// /// No IUserTokenProvider named '{0}' is registered. /// internal static string FormatNoTokenProvider(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("NoTokenProvider"), p0); /// /// User security stamp cannot be null. /// internal static string NullSecurityStamp { get => GetString("NullSecurityStamp"); } /// /// User security stamp cannot be null. /// internal static string FormatNullSecurityStamp() => GetString("NullSecurityStamp"); /// /// Incorrect password. /// internal static string PasswordMismatch { get => GetString("PasswordMismatch"); } /// /// Incorrect password. /// internal static string FormatPasswordMismatch() => GetString("PasswordMismatch"); /// /// Passwords must have at least one digit ('0'-'9'). /// internal static string PasswordRequiresDigit { get => GetString("PasswordRequiresDigit"); } /// /// Passwords must have at least one digit ('0'-'9'). /// internal static string FormatPasswordRequiresDigit() => GetString("PasswordRequiresDigit"); /// /// Passwords must have at least one lowercase ('a'-'z'). /// internal static string PasswordRequiresLower { get => GetString("PasswordRequiresLower"); } /// /// Passwords must have at least one lowercase ('a'-'z'). /// internal static string FormatPasswordRequiresLower() => GetString("PasswordRequiresLower"); /// /// Passwords must have at least one non alphanumeric character. /// internal static string PasswordRequiresNonAlphanumeric { get => GetString("PasswordRequiresNonAlphanumeric"); } /// /// Passwords must have at least one non alphanumeric character. /// internal static string FormatPasswordRequiresNonAlphanumeric() => GetString("PasswordRequiresNonAlphanumeric"); /// /// Passwords must have at least one uppercase ('A'-'Z'). /// internal static string PasswordRequiresUpper { get => GetString("PasswordRequiresUpper"); } /// /// Passwords must have at least one uppercase ('A'-'Z'). /// internal static string FormatPasswordRequiresUpper() => GetString("PasswordRequiresUpper"); /// /// Passwords must be at least {0} characters. /// internal static string PasswordTooShort { get => GetString("PasswordTooShort"); } /// /// Passwords must be at least {0} characters. /// internal static string FormatPasswordTooShort(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("PasswordTooShort"), p0); /// /// Role {0} does not exist. /// internal static string RoleNotFound { get => GetString("RoleNotFound"); } /// /// Role {0} does not exist. /// internal static string FormatRoleNotFound(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("RoleNotFound"), p0); /// /// Store does not implement IQueryableRoleStore<TRole>. /// internal static string StoreNotIQueryableRoleStore { get => GetString("StoreNotIQueryableRoleStore"); } /// /// Store does not implement IQueryableRoleStore<TRole>. /// internal static string FormatStoreNotIQueryableRoleStore() => GetString("StoreNotIQueryableRoleStore"); /// /// Store does not implement IQueryableUserStore<TUser>. /// internal static string StoreNotIQueryableUserStore { get => GetString("StoreNotIQueryableUserStore"); } /// /// Store does not implement IQueryableUserStore<TUser>. /// internal static string FormatStoreNotIQueryableUserStore() => GetString("StoreNotIQueryableUserStore"); /// /// Store does not implement IRoleClaimStore<TRole>. /// internal static string StoreNotIRoleClaimStore { get => GetString("StoreNotIRoleClaimStore"); } /// /// Store does not implement IRoleClaimStore<TRole>. /// internal static string FormatStoreNotIRoleClaimStore() => GetString("StoreNotIRoleClaimStore"); /// /// Store does not implement IUserAuthenticationTokenStore<User>. /// internal static string StoreNotIUserAuthenticationTokenStore { get => GetString("StoreNotIUserAuthenticationTokenStore"); } /// /// Store does not implement IUserAuthenticationTokenStore<User>. /// internal static string FormatStoreNotIUserAuthenticationTokenStore() => GetString("StoreNotIUserAuthenticationTokenStore"); /// /// Store does not implement IUserClaimStore<TUser>. /// internal static string StoreNotIUserClaimStore { get => GetString("StoreNotIUserClaimStore"); } /// /// Store does not implement IUserClaimStore<TUser>. /// internal static string FormatStoreNotIUserClaimStore() => GetString("StoreNotIUserClaimStore"); /// /// Store does not implement IUserConfirmationStore<TUser>. /// internal static string StoreNotIUserConfirmationStore { get => GetString("StoreNotIUserConfirmationStore"); } /// /// Store does not implement IUserConfirmationStore<TUser>. /// internal static string FormatStoreNotIUserConfirmationStore() => GetString("StoreNotIUserConfirmationStore"); /// /// Store does not implement IUserEmailStore<TUser>. /// internal static string StoreNotIUserEmailStore { get => GetString("StoreNotIUserEmailStore"); } /// /// Store does not implement IUserEmailStore<TUser>. /// internal static string FormatStoreNotIUserEmailStore() => GetString("StoreNotIUserEmailStore"); /// /// Store does not implement IUserLockoutStore<TUser>. /// internal static string StoreNotIUserLockoutStore { get => GetString("StoreNotIUserLockoutStore"); } /// /// Store does not implement IUserLockoutStore<TUser>. /// internal static string FormatStoreNotIUserLockoutStore() => GetString("StoreNotIUserLockoutStore"); /// /// Store does not implement IUserLoginStore<TUser>. /// internal static string StoreNotIUserLoginStore { get => GetString("StoreNotIUserLoginStore"); } /// /// Store does not implement IUserLoginStore<TUser>. /// internal static string FormatStoreNotIUserLoginStore() => GetString("StoreNotIUserLoginStore"); /// /// Store does not implement IUserPasswordStore<TUser>. /// internal static string StoreNotIUserPasswordStore { get => GetString("StoreNotIUserPasswordStore"); } /// /// Store does not implement IUserPasswordStore<TUser>. /// internal static string FormatStoreNotIUserPasswordStore() => GetString("StoreNotIUserPasswordStore"); /// /// Store does not implement IUserPhoneNumberStore<TUser>. /// internal static string StoreNotIUserPhoneNumberStore { get => GetString("StoreNotIUserPhoneNumberStore"); } /// /// Store does not implement IUserPhoneNumberStore<TUser>. /// internal static string FormatStoreNotIUserPhoneNumberStore() => GetString("StoreNotIUserPhoneNumberStore"); /// /// Store does not implement IUserRoleStore<TUser>. /// internal static string StoreNotIUserRoleStore { get => GetString("StoreNotIUserRoleStore"); } /// /// Store does not implement IUserRoleStore<TUser>. /// internal static string FormatStoreNotIUserRoleStore() => GetString("StoreNotIUserRoleStore"); /// /// Store does not implement IUserSecurityStampStore<TUser>. /// internal static string StoreNotIUserSecurityStampStore { get => GetString("StoreNotIUserSecurityStampStore"); } /// /// Store does not implement IUserSecurityStampStore<TUser>. /// internal static string FormatStoreNotIUserSecurityStampStore() => GetString("StoreNotIUserSecurityStampStore"); /// /// Store does not implement IUserAuthenticatorKeyStore<User>. /// internal static string StoreNotIUserAuthenticatorKeyStore { get => GetString("StoreNotIUserAuthenticatorKeyStore"); } /// /// Store does not implement IUserAuthenticatorKeyStore<User>. /// internal static string FormatStoreNotIUserAuthenticatorKeyStore() => GetString("StoreNotIUserAuthenticatorKeyStore"); /// /// Store does not implement IUserTwoFactorStore<TUser>. /// internal static string StoreNotIUserTwoFactorStore { get => GetString("StoreNotIUserTwoFactorStore"); } /// /// Store does not implement IUserTwoFactorStore<TUser>. /// internal static string FormatStoreNotIUserTwoFactorStore() => GetString("StoreNotIUserTwoFactorStore"); /// /// Recovery code redemption failed. /// internal static string RecoveryCodeRedemptionFailed { get => GetString("RecoveryCodeRedemptionFailed"); } /// /// Recovery code redemption failed. /// internal static string FormatRecoveryCodeRedemptionFailed() => GetString("RecoveryCodeRedemptionFailed"); /// /// User already has a password set. /// internal static string UserAlreadyHasPassword { get => GetString("UserAlreadyHasPassword"); } /// /// User already has a password set. /// internal static string FormatUserAlreadyHasPassword() => GetString("UserAlreadyHasPassword"); /// /// User already in role '{0}'. /// internal static string UserAlreadyInRole { get => GetString("UserAlreadyInRole"); } /// /// User already in role '{0}'. /// internal static string FormatUserAlreadyInRole(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("UserAlreadyInRole"), p0); /// /// User is locked out. /// internal static string UserLockedOut { get => GetString("UserLockedOut"); } /// /// User is locked out. /// internal static string FormatUserLockedOut() => GetString("UserLockedOut"); /// /// Lockout is not enabled for this user. /// internal static string UserLockoutNotEnabled { get => GetString("UserLockoutNotEnabled"); } /// /// Lockout is not enabled for this user. /// internal static string FormatUserLockoutNotEnabled() => GetString("UserLockoutNotEnabled"); /// /// User {0} does not exist. /// internal static string UserNameNotFound { get => GetString("UserNameNotFound"); } /// /// User {0} does not exist. /// internal static string FormatUserNameNotFound(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("UserNameNotFound"), p0); /// /// User is not in role '{0}'. /// internal static string UserNotInRole { get => GetString("UserNotInRole"); } /// /// User is not in role '{0}'. /// internal static string FormatUserNotInRole(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("UserNotInRole"), p0); /// /// Store does not implement IUserTwoFactorRecoveryCodeStore<User>. /// internal static string StoreNotIUserTwoFactorRecoveryCodeStore { get => GetString("StoreNotIUserTwoFactorRecoveryCodeStore"); } /// /// Store does not implement IUserTwoFactorRecoveryCodeStore<User>. /// internal static string FormatStoreNotIUserTwoFactorRecoveryCodeStore() => GetString("StoreNotIUserTwoFactorRecoveryCodeStore"); /// /// Passwords must use at least {0} different characters. /// internal static string PasswordRequiresUniqueChars { get => GetString("PasswordRequiresUniqueChars"); } /// /// Passwords must use at least {0} different characters. /// internal static string FormatPasswordRequiresUniqueChars(object p0) => string.Format(CultureInfo.CurrentCulture, GetString("PasswordRequiresUniqueChars"), p0); /// /// No RoleType was specified, try AddRoles<TRole>(). /// internal static string NoRoleType { get => GetString("NoRoleType"); } /// /// No RoleType was specified, try AddRoles<TRole>(). /// internal static string FormatNoRoleType() => GetString("NoRoleType"); private static string GetString(string name, params string[] formatterNames) { var value = _resourceManager.GetString(name); System.Diagnostics.Debug.Assert(value != null); if (formatterNames != null) { for (var i = 0; i < formatterNames.Length; i++) { value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}"); } } return value; } } }