// namespace Microsoft.AspNetCore.DataProtection.SystemWeb { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNetCore.DataProtection.SystemWeb.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// A call to Protect failed. This most likely means that the data protection system is misconfigured. See the inner exception for more information. /// internal static string DataProtector_ProtectFailed { get { return GetString("DataProtector_ProtectFailed"); } } /// /// A call to Protect failed. This most likely means that the data protection system is misconfigured. See the inner exception for more information. /// internal static string FormatDataProtector_ProtectFailed() { return GetString("DataProtector_ProtectFailed"); } /// /// The CreateDataProtectionProvider method returned null. /// internal static string Startup_CreateProviderReturnedNull { get { return GetString("Startup_CreateProviderReturnedNull"); } } /// /// The CreateDataProtectionProvider method returned null. /// internal static string FormatStartup_CreateProviderReturnedNull() { return GetString("Startup_CreateProviderReturnedNull"); } 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; } } }