4 implementations of IParameterModelBaseConvention
Microsoft.AspNetCore.Mvc.Core (1)
DependencyInjection\ApplicationModelConventionExtensions.cs (1)
148
IApplicationModelConvention,
IParameterModelBaseConvention
Microsoft.AspNetCore.Mvc.Core.Test (2)
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (2)
438
private class SimplePropertyConvention :
IParameterModelBaseConvention
478
private class ParameterModelBaseConvention :
IParameterModelBaseConvention
Microsoft.AspNetCore.Mvc.RazorPages (1)
DependencyInjection\PageConventionCollectionExtensions.cs (1)
442
private sealed class ParameterModelBaseConventionAdapter : IPageConvention,
IParameterModelBaseConvention
24 references to IParameterModelBaseConvention
Microsoft.AspNetCore.Mvc.Core (10)
ApplicationModels\ApplicationModelConventions.cs (4)
78
var parameterBaseConventions = GetConventions<
IParameterModelBaseConvention
>(conventions, parameter.Attributes);
79
foreach (
var
parameterConvention in parameterBaseConventions)
89
var parameterBaseConventions = GetConventions<
IParameterModelBaseConvention
>(conventions, property.Attributes);
91
foreach (
var
parameterConvention in parameterBaseConventions)
DependencyInjection\ApplicationModelConventionExtensions.cs (6)
99
/// Adds a <see cref="
IParameterModelBaseConvention
"/> to all properties and parameters in the application.
103
/// <param name="parameterModelConvention">The <see cref="
IParameterModelBaseConvention
"/> which needs to be
107
IParameterModelBaseConvention
parameterModelConvention)
150
private readonly
IParameterModelBaseConvention
_parameterBaseModelConvention;
152
public ParameterBaseApplicationModelConvention(
IParameterModelBaseConvention
parameterModelBaseConvention)
163
void
IParameterModelBaseConvention
.Apply(ParameterModelBase parameterModel)
Microsoft.AspNetCore.Mvc.RazorPages (8)
DependencyInjection\PageConventionCollectionExtensions.cs (4)
53
/// <param name="convention">The <see cref="
IParameterModelBaseConvention
"/> to apply.</param>
55
public static PageConventionCollection Add(this PageConventionCollection conventions,
IParameterModelBaseConvention
convention)
444
private readonly
IParameterModelBaseConvention
_convention;
446
public ParameterModelBaseConventionAdapter(
IParameterModelBaseConvention
convention)
Infrastructure\CompiledPageActionDescriptorFactory.cs (4)
78
var parameterModelConventions = GetConventions<
IParameterModelBaseConvention
>(parameterModel.Attributes);
79
foreach (
var
convention in parameterModelConventions)
89
var propertyModelConventions = GetConventions<
IParameterModelBaseConvention
>(propertyModel.Attributes);
90
foreach (
var
convention in propertyModelConventions)
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (6)
170
var parameterModelConvention = new Mock<
IParameterModelBaseConvention
>();
206
var parameterModelConvention = new Mock<
IParameterModelBaseConvention
>();
232
var parameterModelConvention = new Mock<
IParameterModelBaseConvention
>();
269
var propertyModelConvention = new Mock<
IParameterModelBaseConvention
>();
306
var propertyModelConvention = new Mock<
IParameterModelBaseConvention
>();
330
var propertyModelConvention = new Mock<
IParameterModelBaseConvention
>();