// namespace Microsoft.AspNet.Authorization { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNet.Authorization.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// The AuthorizationPolicy named: '{0}' was not found. /// internal static string Exception_AuthorizationPolicyNotFound { get { return GetString("Exception_AuthorizationPolicyNotFound"); } } /// /// The AuthorizationPolicy named: '{0}' was not found. /// internal static string FormatException_AuthorizationPolicyNotFound(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("Exception_AuthorizationPolicyNotFound"), p0); } /// /// At least one role must be specified. /// internal static string Exception_RoleRequirementEmpty { get { return GetString("Exception_RoleRequirementEmpty"); } } /// /// At least one role must be specified. /// internal static string FormatException_RoleRequirementEmpty() { return GetString("Exception_RoleRequirementEmpty"); } 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; } } }