8 instantiations of PageParameterModel
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (1)
92
return new
PageParameterModel
(parameter, attributes)
ApplicationModels\PageHandlerModel.cs (1)
52
Parameters = new List<PageParameterModel>(other.Parameters.Select(p => new
PageParameterModel
(p) { Handler = this }));
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
256
var parameterModel1 = new
PageParameterModel
(parameters[0], new object[0])
260
var parameterModel2 = new
PageParameterModel
(parameters[1], new object[0])
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (4)
171
var parameterModel = new
PageParameterModel
(parameterInfo, new[] { parameterModelConvention.Object });
201
var parameterModel = new
PageParameterModel
(parameterInfo, Array.Empty<object>());
233
var parameterModel = new
PageParameterModel
(parameterInfo, new[] { parameterModelConvention.Object })
268
var parameterModel = new
PageParameterModel
(parameterInfo, Array.Empty<object>());
23 references to PageParameterModel
Microsoft.AspNetCore.Mvc.RazorPages (15)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
104
var
parameterModel = methodParameters[i];
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (4)
61
var
parameterModel = CreateParameterModel(parameter);
71
/// Creates a <see cref="
PageParameterModel
"/> for the specified <paramref name="parameter"/>.
74
/// <returns>The <see cref="
PageParameterModel
"/>.</returns>
75
public
PageParameterModel
CreateParameterModel(ParameterInfo parameter)
ApplicationModels\IPageApplicationModelPartsProvider.cs (3)
21
/// Creates a <see cref="
PageParameterModel
"/> for the specified <paramref name="parameter"/>.
24
/// <returns>The <see cref="
PageParameterModel
"/>.</returns>
25
PageParameterModel
CreateParameterModel(ParameterInfo parameter);
ApplicationModels\PageHandlerModel.cs (4)
28
Parameters = new List<
PageParameterModel
>();
52
Parameters = new List<
PageParameterModel
>(other.Parameters.Select(p => new PageParameterModel(p) { Handler = this }));
76
/// Gets the sequence of <see cref="
PageParameterModel
"/> instances.
78
public IList<
PageParameterModel
> Parameters { get; }
ApplicationModels\PageParameterModel.cs (2)
16
/// Initializes a new instance of a <see cref="
PageParameterModel
"/>.
35
public PageParameterModel(
PageParameterModel
other)
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
76
foreach (
var
parameterModel in parameterModels)
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
256
var
parameterModel1 = new PageParameterModel(parameters[0], new object[0])
260
var
parameterModel2 = new PageParameterModel(parameters[1], new object[0])
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (6)
171
var
parameterModel = new PageParameterModel(parameterInfo, new[] { parameterModelConvention.Object });
201
var
parameterModel = new PageParameterModel(parameterInfo, Array.Empty<object>());
233
var
parameterModel = new PageParameterModel(parameterInfo, new[] { parameterModelConvention.Object })
244
var
model = Assert.IsType<
PageParameterModel
>(m);
268
var
parameterModel = new PageParameterModel(parameterInfo, Array.Empty<object>());