// namespace Microsoft.AspNetCore.DataProtection.Abstractions { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNetCore.DataProtection.Abstractions.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// The payload was invalid. /// internal static string CryptCommon_PayloadInvalid { get { return GetString("CryptCommon_PayloadInvalid"); } } /// /// The payload was invalid. /// internal static string FormatCryptCommon_PayloadInvalid() { return GetString("CryptCommon_PayloadInvalid"); } /// /// The purposes collection cannot be null or empty and cannot contain null elements. /// internal static string DataProtectionExtensions_NullPurposesCollection { get { return GetString("DataProtectionExtensions_NullPurposesCollection"); } } /// /// The purposes collection cannot be null or empty and cannot contain null elements. /// internal static string FormatDataProtectionExtensions_NullPurposesCollection() { return GetString("DataProtectionExtensions_NullPurposesCollection"); } /// /// An error occurred during a cryptographic operation. /// internal static string CryptCommon_GenericError { get { return GetString("CryptCommon_GenericError"); } } /// /// An error occurred during a cryptographic operation. /// internal static string FormatCryptCommon_GenericError() { return GetString("CryptCommon_GenericError"); } /// /// No service for type '{0}' has been registered. /// internal static string DataProtectionExtensions_NoService { get { return GetString("DataProtectionExtensions_NoService"); } } /// /// No service for type '{0}' has been registered. /// internal static string FormatDataProtectionExtensions_NoService(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("DataProtectionExtensions_NoService"), p0); } 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; } } }