// namespace Microsoft.AspNet.Routing { using System.Globalization; using System.Reflection; using System.Resources; internal static class Resources { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNet.Routing.Resources", typeof(Resources).GetTypeInfo().Assembly); /// /// Value must be greater than or equal to {0}. /// internal static string ArgumentMustBeGreaterThanOrEqualTo { get { return GetString("ArgumentMustBeGreaterThanOrEqualTo"); } } /// /// Value must be greater than or equal to {0}. /// internal static string FormatArgumentMustBeGreaterThanOrEqualTo(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("ArgumentMustBeGreaterThanOrEqualTo"), p0); } /// /// The value for argument '{0}' should be less than or equal to the value for the argument '{1}'. /// internal static string RangeConstraint_MinShouldBeLessThanOrEqualToMax { get { return GetString("RangeConstraint_MinShouldBeLessThanOrEqualToMax"); } } /// /// The value for argument '{0}' should be less than or equal to the value for the argument '{1}'. /// internal static string FormatRangeConstraint_MinShouldBeLessThanOrEqualToMax(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("RangeConstraint_MinShouldBeLessThanOrEqualToMax"), p0, p1); } /// /// The '{0}' property of '{1}' must not be null. /// internal static string PropertyOfTypeCannotBeNull { get { return GetString("PropertyOfTypeCannotBeNull"); } } /// /// The '{0}' property of '{1}' must not be null. /// internal static string FormatPropertyOfTypeCannotBeNull(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("PropertyOfTypeCannotBeNull"), p0, p1); } /// /// The supplied route name '{0}' is ambiguous and matched more than one route. /// internal static string NamedRoutes_AmbiguousRoutesFound { get { return GetString("NamedRoutes_AmbiguousRoutesFound"); } } /// /// The supplied route name '{0}' is ambiguous and matched more than one route. /// internal static string FormatNamedRoutes_AmbiguousRoutesFound(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("NamedRoutes_AmbiguousRoutesFound"), p0); } /// /// A default handler must be set on the RouteCollection. /// internal static string DefaultHandler_MustBeSet { get { return GetString("DefaultHandler_MustBeSet"); } } /// /// A default handler must be set on the RouteCollection. /// internal static string FormatDefaultHandler_MustBeSet() { return GetString("DefaultHandler_MustBeSet"); } /// /// The constructor to use for activating the constraint type '{0}' is ambiguous. Multiple constructors were found with the following number of parameters: {1}. /// internal static string DefaultInlineConstraintResolver_AmbiguousCtors { get { return GetString("DefaultInlineConstraintResolver_AmbiguousCtors"); } } /// /// The constructor to use for activating the constraint type '{0}' is ambiguous. Multiple constructors were found with the following number of parameters: {1}. /// internal static string FormatDefaultInlineConstraintResolver_AmbiguousCtors(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("DefaultInlineConstraintResolver_AmbiguousCtors"), p0, p1); } /// /// Could not find a constructor for constraint type '{0}' with the following number of parameters: {1}. /// internal static string DefaultInlineConstraintResolver_CouldNotFindCtor { get { return GetString("DefaultInlineConstraintResolver_CouldNotFindCtor"); } } /// /// Could not find a constructor for constraint type '{0}' with the following number of parameters: {1}. /// internal static string FormatDefaultInlineConstraintResolver_CouldNotFindCtor(object p0, object p1) { return string.Format(CultureInfo.CurrentCulture, GetString("DefaultInlineConstraintResolver_CouldNotFindCtor"), p0, p1); } /// /// The constraint type '{0}' which is mapped to constraint key '{1}' must implement the '{2}' interface. /// internal static string DefaultInlineConstraintResolver_TypeNotConstraint { get { return GetString("DefaultInlineConstraintResolver_TypeNotConstraint"); } } /// /// The constraint type '{0}' which is mapped to constraint key '{1}' must implement the '{2}' interface. /// internal static string FormatDefaultInlineConstraintResolver_TypeNotConstraint(object p0, object p1, object p2) { return string.Format(CultureInfo.CurrentCulture, GetString("DefaultInlineConstraintResolver_TypeNotConstraint"), p0, p1, p2); } /// /// A path segment that contains more than one section, such as a literal section or a parameter, cannot contain a catch-all parameter. /// internal static string TemplateRoute_CannotHaveCatchAllInMultiSegment { get { return GetString("TemplateRoute_CannotHaveCatchAllInMultiSegment"); } } /// /// A path segment that contains more than one section, such as a literal section or a parameter, cannot contain a catch-all parameter. /// internal static string FormatTemplateRoute_CannotHaveCatchAllInMultiSegment() { return GetString("TemplateRoute_CannotHaveCatchAllInMultiSegment"); } /// /// The route parameter '{0}' has both an inline default value and an explicit default value specified. A route parameter cannot contain an inline default value when a default value is specified explicitly. Consider removing one of them. /// internal static string TemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly { get { return GetString("TemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly"); } } /// /// The route parameter '{0}' has both an inline default value and an explicit default value specified. A route parameter cannot contain an inline default value when a default value is specified explicitly. Consider removing one of them. /// internal static string FormatTemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_CannotHaveDefaultValueSpecifiedInlineAndExplicitly"), p0); } /// /// A path segment cannot contain two consecutive parameters. They must be separated by a '/' or by a literal string. /// internal static string TemplateRoute_CannotHaveConsecutiveParameters { get { return GetString("TemplateRoute_CannotHaveConsecutiveParameters"); } } /// /// A path segment cannot contain two consecutive parameters. They must be separated by a '/' or by a literal string. /// internal static string FormatTemplateRoute_CannotHaveConsecutiveParameters() { return GetString("TemplateRoute_CannotHaveConsecutiveParameters"); } /// /// The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. /// internal static string TemplateRoute_CannotHaveConsecutiveSeparators { get { return GetString("TemplateRoute_CannotHaveConsecutiveSeparators"); } } /// /// The route template separator character '/' cannot appear consecutively. It must be separated by either a parameter or a literal value. /// internal static string FormatTemplateRoute_CannotHaveConsecutiveSeparators() { return GetString("TemplateRoute_CannotHaveConsecutiveSeparators"); } /// /// A path segment that contains more than one section, such as a literal section or a parameter, cannot contain an optional parameter. /// internal static string TemplateRoute_CanHaveOnlyLastParameterOptional_IfFollowingOptionalSeperator { get { return GetString("TemplateRoute_CanHaveOnlyLastParameterOptional_IfFollowingOptionalSeperator"); } } /// /// A path segment that contains more than one section, such as a literal section or a parameter, cannot contain an optional parameter. /// internal static string FormatTemplateRoute_CanHaveOnlyLastParameterOptional_IfFollowingOptionalSeperator() { return GetString("TemplateRoute_CanHaveOnlyLastParameterOptional_IfFollowingOptionalSeperator"); } /// /// A catch-all parameter cannot be marked optional. /// internal static string TemplateRoute_CatchAllCannotBeOptional { get { return GetString("TemplateRoute_CatchAllCannotBeOptional"); } } /// /// A catch-all parameter cannot be marked optional. /// internal static string FormatTemplateRoute_CatchAllCannotBeOptional() { return GetString("TemplateRoute_CatchAllCannotBeOptional"); } /// /// An optional parameter cannot have default value. /// internal static string TemplateRoute_OptionalCannotHaveDefaultValue { get { return GetString("TemplateRoute_OptionalCannotHaveDefaultValue"); } } /// /// An optional parameter cannot have default value. /// internal static string FormatTemplateRoute_OptionalCannotHaveDefaultValue() { return GetString("TemplateRoute_OptionalCannotHaveDefaultValue"); } /// /// A catch-all parameter can only appear as the last segment of the route template. /// internal static string TemplateRoute_CatchAllMustBeLast { get { return GetString("TemplateRoute_CatchAllMustBeLast"); } } /// /// A catch-all parameter can only appear as the last segment of the route template. /// internal static string FormatTemplateRoute_CatchAllMustBeLast() { return GetString("TemplateRoute_CatchAllMustBeLast"); } /// /// The literal section '{0}' is invalid. Literal sections cannot contain the '?' character. /// internal static string TemplateRoute_InvalidLiteral { get { return GetString("TemplateRoute_InvalidLiteral"); } } /// /// The literal section '{0}' is invalid. Literal sections cannot contain the '?' character. /// internal static string FormatTemplateRoute_InvalidLiteral(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_InvalidLiteral"), p0); } /// /// The route parameter name '{0}' is invalid. Route parameter names must be non-empty and cannot contain these characters: '{{', '}}', '/'. The '?' character marks a parameter as optional, and can occur only at the end of the parameter. The '*' character marks a parameter as catch-all, and can occur only at the start of the parameter. /// internal static string TemplateRoute_InvalidParameterName { get { return GetString("TemplateRoute_InvalidParameterName"); } } /// /// The route parameter name '{0}' is invalid. Route parameter names must be non-empty and cannot contain these characters: '{{', '}}', '/'. The '?' character marks a parameter as optional, and can occur only at the end of the parameter. The '*' character marks a parameter as catch-all, and can occur only at the start of the parameter. /// internal static string FormatTemplateRoute_InvalidParameterName(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_InvalidParameterName"), p0); } /// /// The route template cannot start with a '/' or '~' character. /// internal static string TemplateRoute_InvalidRouteTemplate { get { return GetString("TemplateRoute_InvalidRouteTemplate"); } } /// /// The route template cannot start with a '/' or '~' character. /// internal static string FormatTemplateRoute_InvalidRouteTemplate() { return GetString("TemplateRoute_InvalidRouteTemplate"); } /// /// There is an incomplete parameter in the route template. Check that each '{' character has a matching '}' character. /// internal static string TemplateRoute_MismatchedParameter { get { return GetString("TemplateRoute_MismatchedParameter"); } } /// /// There is an incomplete parameter in the route template. Check that each '{' character has a matching '}' character. /// internal static string FormatTemplateRoute_MismatchedParameter() { return GetString("TemplateRoute_MismatchedParameter"); } /// /// The route parameter name '{0}' appears more than one time in the route template. /// internal static string TemplateRoute_RepeatedParameter { get { return GetString("TemplateRoute_RepeatedParameter"); } } /// /// The route parameter name '{0}' appears more than one time in the route template. /// internal static string FormatTemplateRoute_RepeatedParameter(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("TemplateRoute_RepeatedParameter"), p0); } /// /// The constraint entry '{0}' - '{1}' on route '{2}' must have a string value or be of a type which implements '{3}'. /// internal static string RouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint { get { return GetString("RouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint"); } } /// /// The constraint entry '{0}' - '{1}' on route '{2}' must have a string value or be of a type which implements '{3}'. /// internal static string FormatRouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint(object p0, object p1, object p2, object p3) { return string.Format(CultureInfo.CurrentCulture, GetString("RouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint"), p0, p1, p2, p3); } /// /// The constraint entry '{0}' - '{1}' on route '{2}' could not be resolved by the constraint resolver of type '{3}'. /// internal static string RouteConstraintBuilder_CouldNotResolveConstraint { get { return GetString("RouteConstraintBuilder_CouldNotResolveConstraint"); } } /// /// The constraint entry '{0}' - '{1}' on route '{2}' could not be resolved by the constraint resolver of type '{3}'. /// internal static string FormatRouteConstraintBuilder_CouldNotResolveConstraint(object p0, object p1, object p2, object p3) { return string.Format(CultureInfo.CurrentCulture, GetString("RouteConstraintBuilder_CouldNotResolveConstraint"), p0, p1, p2, p3); } 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; } } }