12 instantiations of ParameterModel
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ActionModel.cs (1)
66
Parameters = new List<ParameterModel>(other.Parameters.Select(p => new
ParameterModel
(p) { Action = this }));
ApplicationModels\DefaultApplicationModelProvider.cs (1)
452
var parameterModel = new
ParameterModel
(parameterInfo, attributes)
Microsoft.AspNetCore.Mvc.Core.Test (10)
ApplicationModels\ActionModelTest.cs (1)
22
var parameter = new
ParameterModel
(action.ActionMethod.GetParameters()[0],
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (2)
59
var parameterModel = new
ParameterModel
(parameter, Array.Empty<object>())
102
var parameterModel = new
ParameterModel
(parameter, Array.Empty<object>())
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1166
var parameterModel = new
ParameterModel
(parameterInfo,
ApplicationModels\ParameterModelTest.cs (2)
15
var parameter = new
ParameterModel
(typeof(TestController).GetMethod("Edit").GetParameters()[0],
28
var parameter2 = new
ParameterModel
(parameter);
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (4)
23
var parameterModel = new
ParameterModel
(
90
var parameterModel1 = new
ParameterModel
(
315
var parameterModel = new
ParameterModel
(
348
var parameterModel = new
ParameterModel
(
83 references to ParameterModel
ApplicationModelWebSite (2)
Controllers\ParameterModelController.cs (1)
23
public void Apply(
ParameterModel
model)
Conventions\FromHeaderConvention.cs (1)
13
foreach (
var
param in action.Parameters)
Microsoft.AspNetCore.Mvc.Core (24)
ApplicationModels\ActionModel.cs (3)
37
Parameters = new List<
ParameterModel
>();
66
Parameters = new List<
ParameterModel
>(other.Parameters.Select(p => new ParameterModel(p) { Action = this }));
110
public IList<
ParameterModel
> Parameters { get; }
ApplicationModels\ApplicationModelConventions.cs (1)
64
foreach (
var
parameter in parameters)
ApplicationModels\ConsumesConstraintForFormFileParameterConvention.cs (1)
48
foreach (
var
parameter in action.Parameters)
ApplicationModels\ControllerActionDescriptorBuilder.cs (2)
65
foreach (
var
parameter in action.Parameters)
74
private static ParameterDescriptor CreateParameterDescriptor(
ParameterModel
parameterModel)
ApplicationModels\DefaultApplicationModelProvider.cs (5)
86
var
parameterModel = CreateParameterModel(parameterInfo);
430
/// Creates a <see cref="
ParameterModel
"/> for the given <see cref="ParameterInfo"/>.
433
/// <returns>A <see cref="
ParameterModel
"/> for the given <see cref="ParameterInfo"/>.</returns>
434
internal
ParameterModel
CreateParameterModel(ParameterInfo parameterInfo)
452
var
parameterModel = new ParameterModel(parameterInfo, attributes)
ApplicationModels\InferParameterBindingInfoConvention.cs (4)
83
var
parameter = action.Parameters[i];
114
internal BindingSource? InferBindingSourceForParameter(
ParameterModel
parameter)
172
private bool IsComplexTypeParameter(
ParameterModel
parameter, out ModelMetadata metadata)
180
private bool IsOptionalParameter(
ParameterModel
parameter)
ApplicationModels\IParameterModelConvention.cs (4)
7
/// Allows customization of the <see cref="
ParameterModel
"/>.
19
/// Called to apply the convention to the <see cref="
ParameterModel
"/>.
21
/// <param name="parameter">The <see cref="
ParameterModel
"/>.</param>
22
void Apply(
ParameterModel
parameter);
ApplicationModels\ParameterModel.cs (3)
17
/// Initializes a new <see cref="
ParameterModel
"/>.
30
/// Initializes a new <see cref="
ParameterModel
"/>.
33
public ParameterModel(
ParameterModel
other)
DependencyInjection\ApplicationModelConventionExtensions.cs (1)
138
foreach (
var
parameter in parameters)
Microsoft.AspNetCore.Mvc.Core.Test (57)
ApplicationModels\ActionModelTest.cs (1)
22
var
parameter = new ParameterModel(action.ActionMethod.GetParameters()[0],
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (2)
59
var
parameterModel = new ParameterModel(parameter, Array.Empty<object>())
102
var
parameterModel = new ParameterModel(parameter, Array.Empty<object>())
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1147
.Setup(c => c.Apply(It.IsAny<
ParameterModel
>()))
1166
var
parameterModel = new ParameterModel(parameterInfo,
ApplicationModels\InferParameterBindingInfoConventionTest.cs (43)
29
var
parameterModel = Assert.Single(action.Parameters);
47
var
parameterModel = Assert.Single(action.Parameters);
234
var
parameter = Assert.Single(action.Parameters);
255
var
parameter = Assert.Single(action.Parameters);
276
var
parameter = Assert.Single(action.Parameters);
289
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
304
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
319
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
334
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
349
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
364
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
379
var
parameter = GetParameterModel(typeof(ParameterInController), actionName);
394
var
parameter = GetParameterModel(typeof(ParameterInController), actionName);
409
var
parameter = GetParameterModel(typeof(ParameterInController), actionName);
424
var
parameter = GetParameterModel(typeof(ParameterInController), actionName);
439
var
parameter = GetParameterModel(typeof(ParameterInController), actionName);
454
var
parameter = GetParameterModel(typeof(ParameterBindingNoRoutesOnController), actionName);
469
var
parameter = GetParameterModel(typeof(ParameterBindingNoRoutesOnController), actionName);
484
var
parameter = GetParameterModel(typeof(ParameterBindingNoRoutesOnController), actionName);
499
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
527
var
model = GetParameterModel<TestModel>(actionModel);
530
var
cancellationToken = GetParameterModel<CancellationToken>(actionModel);
539
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
554
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
569
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
584
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
599
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
614
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
632
var
parameter = GetParameterModel(typeof(ParameterBindingController), actionName);
658
var
parameter = Assert.Single(action.Parameters);
679
var
parameter = Assert.Single(action.Parameters);
700
var
parameter = Assert.Single(action.Parameters);
720
var
parameter = Assert.Single(action.Parameters);
741
var
parameter = Assert.Single(action.Parameters);
762
var
parameter = Assert.Single(action.Parameters);
783
var
parameter = Assert.Single(action.Parameters);
804
var
parameter = Assert.Single(action.Parameters);
825
var
parameter = Assert.Single(action.Parameters);
846
var
parameter = Assert.Single(action.Parameters);
866
var
parameter = Assert.Single(action.Parameters);
889
var
parameter = Assert.Single(action.Parameters);
931
private static
ParameterModel
GetParameterModel(Type controllerType, string actionName)
937
private static
ParameterModel
GetParameterModel<T>(ActionModel action)
ApplicationModels\ParameterModelTest.cs (3)
15
var
parameter = new ParameterModel(typeof(TestController).GetMethod("Edit").GetParameters()[0],
28
var
parameter2 = new ParameterModel(parameter);
31
foreach (var property in typeof(
ParameterModel
).GetProperties())
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (6)
23
var
parameterModel = new ParameterModel(
90
var
parameterModel1 = new ParameterModel(
315
var
parameterModel = new ParameterModel(
348
var
parameterModel = new ParameterModel(
424
public void Apply(
ParameterModel
parameter)
489
public void Apply(
ParameterModel
parameter)