// namespace Microsoft.AspNet.Mvc.Core { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNet.Mvc.Core.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// The method '{0}' on type '{1}' returned an instance of '{2}'. Make sure to call Unwrap on the returned value to avoid unobserved faulted Task. /// internal static string ActionExecutor_WrappedTaskInstance { get { return GetString("ActionExecutor_WrappedTaskInstance"); } } /// /// The method '{0}' on type '{1}' returned an instance of '{2}'. Make sure to call Unwrap on the returned value to avoid unobserved faulted Task. /// internal static string FormatActionExecutor_WrappedTaskInstance(object p0, object p1, object p2) { return string.Format(CultureInfo.CurrentCulture, GetString("ActionExecutor_WrappedTaskInstance"), p0, p1, p2); } /// /// The method '{0}' on type '{1}' returned a Task instance even though it is not an asynchronous method. /// internal static string ActionExecutor_UnexpectedTaskInstance { get { return GetString("ActionExecutor_UnexpectedTaskInstance"); } } /// /// The method '{0}' on type '{1}' returned a Task instance even though it is not an asynchronous method. /// internal static string FormatActionExecutor_UnexpectedTaskInstance(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("ActionExecutor_UnexpectedTaskInstance"), p0, p1); } /// /// The class ReflectedActionFilterEndPoint only supports ReflectedActionDescriptors. /// internal static string ReflectedActionFilterEndPoint_UnexpectedActionDescriptor { get { return GetString("ReflectedActionFilterEndPoint_UnexpectedActionDescriptor"); } } /// /// The class ReflectedActionFilterEndPoint only supports ReflectedActionDescriptors. /// internal static string FormatReflectedActionFilterEndPoint_UnexpectedActionDescriptor() { return GetString("ReflectedActionFilterEndPoint_UnexpectedActionDescriptor"); } 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; } } }