174 references to Resources
Microsoft.AspNetCore.Mvc.Core (174)
AcceptedAtActionResult.cs (1)
87throw new InvalidOperationException(Resources.NoRoutesMatched);
AcceptedAtRouteResult.cs (1)
83throw new InvalidOperationException(Resources.NoRoutesMatched);
ActionResultOfT.cs (2)
27var error = Resources.FormatInvalidTypeTForActionResultOfT(typeof(TValue), "ActionResult<T>"); 43var error = Resources.FormatInvalidTypeTForActionResultOfT(typeof(TValue), "ActionResult<T>");
ApiConventionMethodAttribute.cs (2)
55throw new ArgumentException(Resources.FormatApiConventionMethod_NoMethodFound(methodName, conventionType), nameof(methodName)); 59throw new ArgumentException(Resources.FormatApiConventionMethod_AmbiguousMethodName(methodName, conventionType), nameof(methodName));
ApiConventionTypeAttribute.cs (2)
58throw new ArgumentException(Resources.FormatApiConventionMustBeStatic(conventionType), nameof(conventionType)); 73var errorMessage = Resources.FormatApiConvention_UnsupportedAttributesOnConvention(
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
97var message = Resources.FormatApiController_AttributeRouteRequired(
ApplicationModels\ApplicationModelFactory.cs (8)
164var message = Resources.FormatAttributeRoute_IndividualErrorMessage( 211Resources.FormatAttributeRoute_AggregateErrorMessage_ErrorNumber( 242return Resources.FormatAttributeRoute_DuplicateNames_Item(a.action.DisplayName, a.selector.AttributeRouteModel!.Template); 245var message = Resources.FormatAttributeRoute_DuplicateNames(routeName, Environment.NewLine, string.Join(Environment.NewLine, descriptions)); 295var nullTemplate = Resources.AttributeRoute_NullTemplateRepresentation; 311var description = Resources.FormatAttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod_Item( 331return Resources.FormatAttributeRoute_MixedAttributeAndConventionallyRoutedActions_ForMethod( 341var message = Resources.FormatAttributeRoute_AggregateErrorMessage(
ApplicationModels\AttributeRouteModel.cs (13)
311var message = Resources.FormatAttributeRoute_TokenReplacement_InvalidSyntax( 313Resources.AttributeRoute_TokenReplacement_EmptyTokenNotAllowed); 319var message = Resources.FormatAttributeRoute_TokenReplacement_InvalidSyntax( 321Resources.AttributeRoute_TokenReplacement_UnclosedToken); 341var message = Resources.FormatAttributeRoute_TokenReplacement_InvalidSyntax( 343Resources.AttributeRoute_TokenReplacement_ImbalancedSquareBrackets); 349var message = Resources.FormatAttributeRoute_TokenReplacement_InvalidSyntax( 351Resources.AttributeRoute_TokenReplacement_ImbalancedSquareBrackets); 369var message = Resources.FormatAttributeRoute_TokenReplacement_InvalidSyntax( 371Resources.AttributeRoute_TokenReplacement_UnclosedToken); 389var message = Resources.FormatAttributeRoute_TokenReplacement_InvalidSyntax( 391Resources.AttributeRoute_TokenReplacement_UnescapedBraceInToken); 412var message = Resources.FormatAttributeRoute_TokenReplacement_ReplacementValueNotFound(
ApplicationModels\ControllerActionDescriptorBuilder.cs (2)
11using Resources = Microsoft.AspNetCore.Mvc.Core.Resources; 125throw new InvalidOperationException(Resources.FormatApiExplorer_UnsupportedAction(
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
9using Resources = Microsoft.AspNetCore.Mvc.Core.Resources; 96var message = Resources.FormatApiController_MultipleBodyParametersFound(
ApplicationParts\ApplicationPartFactory.cs (1)
48throw new InvalidOperationException(Resources.FormatApplicationPartFactory_InvalidFactoryType(
ApplicationParts\RelatedAssemblyAttribute.cs (1)
86Resources.FormatRelatedAssemblyAttribute_AssemblyCannotReferenceSelf(nameof(RelatedAssemblyAttribute), assemblyName));
artifacts\obj\Microsoft.AspNetCore.Mvc.Core\Release\net9.0\Microsoft.AspNetCore.Mvc.Core.Resources.cs (1)
10internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(Resources)));
Authorization\AuthorizeFilter.cs (1)
111Resources.FormatAuthorizeFilter_AuthorizationPolicyCannotBeCreated(
BindPropertyAttribute.cs (1)
49Resources.FormatBinderType_MustBeIModelBinder(
Builder\ControllerEndpointRouteBuilderExtensions.cs (1)
503throw new InvalidOperationException(Resources.FormatUnableToFindServices(
Builder\MvcApplicationBuilderExtensions.cs (1)
123throw new InvalidOperationException(Resources.FormatUnableToFindServices(
ConsumesAttribute.cs (2)
12using Resources = Microsoft.AspNetCore.Mvc.Core.Resources; 249Resources.FormatMatchAllContentTypeIsNotAllowed(arg));
ControllerContext.cs (1)
40throw new ArgumentException(Resources.FormatActionDescriptorMustBeBasedOnControllerAction(
Controllers\ControllerActivatorProvider.cs (1)
47throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\ControllerFactoryProvider.cs (3)
45throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 80throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 101throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerActivator.cs (2)
34throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 43throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerFactory.cs (1)
45throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerPropertyActivator.cs (1)
40throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
CreatedAtActionResult.cs (1)
87throw new InvalidOperationException(Resources.NoRoutesMatched);
CreatedAtRouteResult.cs (1)
83throw new InvalidOperationException(Resources.NoRoutesMatched);
Filters\ControllerActionFilter.cs (1)
28throw new InvalidOperationException(Resources.FormatPropertyOfTypeCannotBeNull(
Filters\ControllerResultFilter.cs (1)
28throw new InvalidOperationException(Resources.FormatPropertyOfTypeCannotBeNull(
Filters\DefaultFilterProvider.cs (1)
57throw new InvalidOperationException(Resources.FormatTypeMethodMustReturnNotNullValue(
Filters\FilterCollection.cs (2)
81var message = Resources.FormatTypeMustDeriveFromType( 159var message = Resources.FormatTypeMustDeriveFromType(
Filters\MiddlewareFilterBuilder.cs (1)
47Resources.FormatMiddlewareFilterBuilder_NullApplicationBuilder(nameof(ApplicationBuilder)));
Filters\MiddlewareFilterConfigurationProvider.cs (5)
25Resources.FormatMiddlewareFilterConfigurationProvider_CreateConfigureDelegate_CannotCreateType(configurationType, nameof(configurationType))); 48Resources.FormatMiddewareFilter_ConfigureMethodOverload(methodName)); 55Resources.FormatMiddewareFilter_NoConfigureMethod( 63Resources.FormatMiddlewareFilter_InvalidConfigureReturnType( 111Resources.FormatMiddlewareFilter_ServiceResolutionFail(
Filters\OutputCacheFilter.cs (1)
43Resources.FormatOutputCacheAttribute_Requires_OutputCachingMiddleware(nameof(OutputCacheAttribute)));
Filters\ResponseCacheFilterExecutor.cs (2)
65Resources.FormatResponseCache_SpecifyDuration(nameof(NoStore), nameof(Duration))); 87Resources.FormatVaryByQueryKeys_Requires_ResponseCachingMiddleware(nameof(VaryByQueryKeys)));
Formatters\FormatterMappings.cs (3)
57var message = Resources.FormatFormatFormatterMappings_GetMediaTypeMappingForFormat_InvalidFormat( 88string.Format(CultureInfo.CurrentCulture, Resources.FormatterMappings_NotValidMediaType, contentType), 101throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Format_NotValid, format), nameof(format));
Formatters\InputFormatter.cs (2)
43var message = Resources.FormatFormatter_NoMediaTypes( 125var message = Resources.FormatFormatter_NoMediaTypes(
Formatters\MediaType.cs (1)
64throw new ArgumentException(Resources.FormatArgument_InvalidOffsetLength(nameof(offset), nameof(length)));
Formatters\OutputFormatter.cs (2)
38var message = Resources.FormatFormatter_NoMediaTypes( 99var message = Resources.FormatFormatter_NoMediaTypes(
Formatters\TextInputFormatter.cs (2)
42var message = Resources.FormatUnsupportedContentType( 79var message = Resources.FormatTextInputFormatter_SupportedEncodingsMustNotBeEmpty(
Formatters\TextOutputFormatter.cs (3)
69var message = Resources.FormatTextOutputFormatter_SupportedEncodingsMustNotBeEmpty( 117throw new InvalidOperationException(Resources.FormatOutputFormatterNoMediaType(GetType().FullName)); 154var message = Resources.FormatTextOutputFormatter_WriteResponseBodyAsyncNotSupported(
Infrastructure\ActionMethodExecutor.cs (3)
9using Resources = Microsoft.AspNetCore.Mvc.Core.Resources; 360throw new InvalidOperationException(Resources.FormatActionResult_ActionReturnValueCannotBeNull(type)); 369throw new InvalidOperationException(Resources.FormatActionResult_ActionReturnValueCannotBeNull(declaredType));
Infrastructure\ActionSelector.cs (2)
11using Resources = Microsoft.AspNetCore.Mvc.Core.Resources; 103var message = Resources.FormatDefaultActionSelector_AmbiguousActions(
Infrastructure\AsyncEnumerableReader.cs (1)
89throw new InvalidOperationException(Resources.FormatObjectResultExecutor_MaxEnumerationExceeded(
Infrastructure\ControllerActionInvoker.cs (2)
14using Resources = Microsoft.AspNetCore.Mvc.Core.Resources; 368var message = Resources.FormatAsyncActionFilter_InvalidShortCircuit(
Infrastructure\DefaultOutputFormatterSelector.cs (2)
63throw new InvalidOperationException(Resources.FormatOutputFormattersAreRequired( 275var message = Resources.FormatObjectResult_MatchAllContentType(
Infrastructure\LocalRedirectResultExecutor.cs (1)
46throw new InvalidOperationException(Resources.UrlNotLocal);
Infrastructure\ModelStateInvalidFilter.cs (1)
34throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Infrastructure\PhysicalFileResultExecutor.cs (2)
35Resources.FormatFileResult_InvalidPath(result.FileName), result.FileName); 81throw new NotSupportedException(Resources.FormatFileResult_PathNotRooted(result.FileName));
Infrastructure\RedirectToActionResultExecutor.cs (1)
50throw new InvalidOperationException(Resources.NoRoutesMatched);
Infrastructure\RedirectToPageResultExecutor.cs (1)
50throw new InvalidOperationException(Resources.FormatNoRoutesMatchedForPage(result.PageName));
Infrastructure\RedirectToRouteResultExecutor.cs (1)
46throw new InvalidOperationException(Resources.NoRoutesMatched);
Infrastructure\ResourceInvoker.cs (2)
935var message = Resources.FormatAsyncResourceFilter_InvalidShortCircuit( 1431var message = Resources.FormatAsyncResultFilter_InvalidShortCircuit(
Infrastructure\SystemTextJsonResultExecutor.cs (1)
121throw new InvalidOperationException(Resources.FormatProperty_MustBeInstanceOfType(
Infrastructure\VirtualFileResultExecutor.cs (2)
43Resources.FormatFileResult_InvalidPath(result.FileName), result.FileName); 110throw new InvalidOperationException(Resources.VirtualFileResultExecutor_NoFileProviderConfigured);
ModelBinderAttribute.cs (1)
67Resources.FormatBinderType_MustBeIModelBinder(
ModelBinding\Binders\BinderTypeModelBinder.cs (1)
30Resources.FormatBinderType_MustBeIModelBinder(
ModelBinding\Binders\BodyModelBinder.cs (1)
146var message = Resources.FormatUnsupportedContentType(httpContext.Request.ContentType);
ModelBinding\Binders\BodyModelBinderProvider.cs (1)
77throw new InvalidOperationException(Resources.FormatInputFormattersAreRequired(
ModelBinding\Binders\CollectionModelBinder.cs (1)
389throw new InvalidOperationException(Resources.FormatModelBinding_ExceededMaxModelBindingCollectionSize(
ModelBinding\Binders\ComplexObjectModelBinder.cs (3)
198Resources.FormatComplexObjectModelBinder_NoSuitableConstructor_ForParameter( 203Resources.FormatComplexObjectModelBinder_NoSuitableConstructor_ForProperty( 209Resources.FormatComplexObjectModelBinder_NoSuitableConstructor_ForType(
ModelBinding\Binders\ComplexTypeModelBinder.cs (4)
479throw new InvalidOperationException(Resources.FormatComplexTypeModelBinder_NoParameterlessConstructor_ForType(modelType.FullName)); 487Resources.FormatComplexTypeModelBinder_NoParameterlessConstructor_ForParameter( 492Resources.FormatComplexTypeModelBinder_NoParameterlessConstructor_ForProperty( 498Resources.FormatComplexTypeModelBinder_NoParameterlessConstructor_ForType(
ModelBinding\Binders\FormCollectionModelBinderProvider.cs (1)
28Resources.FormatFormCollectionModelBinder_CannotBindToFormCollection(
ModelBinding\Binders\TryParseModelBinder.cs (1)
111?? throw new InvalidOperationException(Resources.FormatTryParseModelBinder_InvalidType(modelType, nameof(TryParseModelBinder)));
ModelBinding\BindingSourceValueProvider.cs (2)
41var message = Resources.FormatBindingSource_CannotBeGreedy( 49var message = Resources.FormatBindingSource_CannotBeComposite(
ModelBinding\DefaultModelBindingContext.cs (1)
290throw new InvalidOperationException(Resources.FormatModelBinding_ExceededMaxModelBindingRecursionDepth(
ModelBinding\FormFileValueProviderFactory.cs (2)
43throw new ValueProviderException(Resources.FormatFailedToReadRequestForm(ex.Message), ex); 49throw new ValueProviderException(Resources.FormatFailedToReadRequestForm(ex.Message), ex);
ModelBinding\FormValueProviderFactory.cs (2)
45throw new ValueProviderException(Resources.FormatFailedToReadRequestForm(ex.Message), ex); 51throw new ValueProviderException(Resources.FormatFailedToReadRequestForm(ex.Message), ex);
ModelBinding\JQueryFormValueProviderFactory.cs (2)
45throw new ValueProviderException(Resources.FormatFailedToReadRequestForm(ex.Message), ex); 51throw new ValueProviderException(Resources.FormatFailedToReadRequestForm(ex.Message), ex);
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
72message: Resources.FormatJQueryFormValueProviderFactory_MissingClosingBracket(key),
ModelBinding\Metadata\BindingMetadata.cs (1)
48Resources.FormatBinderType_MustBeIModelBinder(
ModelBinding\Metadata\DefaultModelBindingMessageProvider.cs (11)
33SetMissingBindRequiredValueAccessor(Resources.FormatModelBinding_MissingBindRequiredMember); 34SetMissingKeyOrValueAccessor(() => Resources.KeyValuePair_BothKeyAndValueMustBePresent); 35SetMissingRequestBodyRequiredValueAccessor(() => Resources.ModelBinding_MissingRequestBodyRequiredMember); 36SetValueMustNotBeNullAccessor(Resources.FormatModelBinding_NullValueNotValid); 37SetAttemptedValueIsInvalidAccessor(Resources.FormatModelState_AttemptedValueIsInvalid); 38SetNonPropertyAttemptedValueIsInvalidAccessor(Resources.FormatModelState_NonPropertyAttemptedValueIsInvalid); 39SetUnknownValueIsInvalidAccessor(Resources.FormatModelState_UnknownValueIsInvalid); 40SetNonPropertyUnknownValueIsInvalidAccessor(() => Resources.ModelState_NonPropertyUnknownValueIsInvalid); 41SetValueIsInvalidAccessor(Resources.FormatHtmlGeneration_ValueIsInvalid); 42SetValueMustBeANumberAccessor(Resources.FormatHtmlGeneration_ValueMustBeNumber); 43SetNonPropertyValueMustBeANumberAccessor(() => Resources.HtmlGeneration_NonPropertyValueMustBeNumber);
ModelBinding\ModelBinderFactory.cs (2)
57throw new InvalidOperationException(Resources.FormatModelBinderProvidersAreRequired( 75var message = Resources.FormatCouldNotCreateIModelBinder(providerContext.Metadata.ModelType);
ModelBinding\ModelBindingHelper.cs (6)
226var message = Resources.FormatModelType_WrongType( 236throw new NotSupportedException(Resources.FormatTryUpdateModel_RecordTypeNotSupported(nameof(TryUpdateModelAsync), modelType)); 298Resources.FormatInvalid_IncludePropertyExpression(expression.NodeType)); 308Resources.FormatInvalid_IncludePropertyExpression(expression.NodeType)); 317Resources.FormatInvalid_IncludePropertyExpression(expression.NodeType)); 715Resources.FormatValueProviderResult_NoConverterExists(value.GetType(), destinationType));
ModelBinding\ModelMetadataProviderExtensions.cs (1)
37var message = Resources.FormatCommon_PropertyNotFound(containerType, propertyName);
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (1)
99Resources.FormatValidationStrategy_MappedPropertyNotFound(parameterName, _modelMetadata.ModelType));
ModelBinding\Validation\ValidationVisitor.cs (4)
173throw new ArgumentException(Resources.FormatValidationVisitor_ContainerCannotBeSpecified(metadata.MetadataKind)); 302message = Resources.FormatValidationVisitor_ExceededMaxPropertyDepth(nameof(ValidationVisitor), MaxValidationDepth, metadata.Name, metadata.ContainerType); 307message = Resources.FormatValidationVisitor_ExceededMaxDepth(nameof(ValidationVisitor), MaxValidationDepth, metadata.ModelType); 311message += " " + Resources.FormatValidationVisitor_ExceededMaxDepthFix(nameof(MvcOptions), nameof(MvcOptions.MaxValidationDepth));
ProducesAttribute.cs (1)
116Resources.FormatMatchAllContentTypeIsNotAllowed(arg));
ProducesResponseTypeAttribute.cs (2)
7using Resources = Microsoft.AspNetCore.Mvc.Core.Resources; 114throw new InvalidOperationException(Resources.FormatGetContentTypes_WildcardsNotSupported(type));
ResponseCacheAttribute.cs (1)
92throw new InvalidOperationException(Resources.FormatCacheProfileNotFound(CacheProfileName));
Routing\AttributeRoute.cs (4)
11using Resources = Microsoft.AspNetCore.Mvc.Core.Resources; 166e => Resources.FormatAttributeRoute_IndividualErrorMessage( 171var message = Resources.FormatAttributeRoute_AggregateErrorMessage(Environment.NewLine, allErrors); 213routeInfo.ErrorMessage = Resources.FormatAttributeRoute_CannotContainParameter(
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
96throw new InvalidOperationException(Resources.FormatStateShouldBeNullForRouteValueTransformers(transformerMetadata.SelectorType.Name));
Routing\KnownRouteValueConstraint.cs (1)
82Resources.FormatPropertyOfTypeCannotBeNull(
Routing\MvcAttributeRouteHandler.cs (3)
9using Resources = Microsoft.AspNetCore.Mvc.Core.Resources; 48var message = Resources.FormatPropertyOfTypeCannotBeNull( 78Resources.FormatActionInvokerFactory_CouldNotCreateInvoker(
Routing\MvcRouteHandler.cs (1)
66Resources.FormatActionInvokerFactory_CouldNotCreateInvoker(
Routing\UrlHelperBase.cs (1)
402throw new InvalidOperationException(Resources.FormatUrlHelper_RelativePagePathIsNotSupported(
Routing\UrlHelperFactory.cs (2)
25throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 32throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
SerializableError.cs (1)
47Resources.SerializableError_DefaultError : error.ErrorMessage;
SignOutResult.cs (1)
108Resources.FormatPropertyOfTypeCannotBeNull(
ValidationProblemDetails.cs (2)
21Title = Resources.ValidationProblemDescription_Title; 68Resources.SerializableError_DefaultError :