14 instantiations of PageHandlerModel
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (1)
47
var handlerModel = new
PageHandlerModel
(
ApplicationModels\PageApplicationModel.cs (1)
67
HandlerMethods = new List<PageHandlerModel>(other.HandlerMethods.Select(m => new
PageHandlerModel
(m)));
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (4)
70
new
PageHandlerModel
(handlerTypeInfo.GetMethod(nameof(TestModel.OnGet)), new object[0]),
121
new
PageHandlerModel
(handlerTypeInfo.GetMethod(nameof(TestModel.OnGet)), new object[0]),
214
var handlerModel = new
PageHandlerModel
(handlerTypeInfo.GetMethod(nameof(ModelWithHandler.OnGetCustomerAsync)), new object[0])
264
var handlerModel = new
PageHandlerModel
(handlerMethod, new object[0])
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (8)
83
var handlerModel = new
PageHandlerModel
(methodInfo, new[] { handlerModelConvention.Object });
110
var handlerModel = new
PageHandlerModel
(methodInfo, Array.Empty<object>());
138
var handlerModel = new
PageHandlerModel
(methodInfo, new[] { handlerModelConvention.Object })
169
var handlerModel = new
PageHandlerModel
(methodInfo, Array.Empty<object>());
200
var handlerModel = new
PageHandlerModel
(methodInfo, Array.Empty<object>());
231
var handlerModel = new
PageHandlerModel
(methodInfo, Array.Empty<object>());
267
var handlerModel = new
PageHandlerModel
(methodInfo, Array.Empty<object>());
300
var handlerModel = new
PageHandlerModel
(methodInfo, Array.Empty<object>());
45 references to PageHandlerModel
Microsoft.AspNetCore.Mvc.RazorPages (28)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (2)
82
var
handlerModel = handlerModels[i];
97
internal static HandlerParameterDescriptor[] CreateHandlerParameters(
PageHandlerModel
handlerModel)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (4)
29
/// Creates a <see cref="
PageHandlerModel
"/> for the specified <paramref name="method"/>.s
32
/// <returns>The <see cref="
PageHandlerModel
"/>.</returns>
33
public
PageHandlerModel
? CreateHandlerModel(MethodInfo method)
47
var
handlerModel = new PageHandlerModel(
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
146
var
handler = _pageApplicationModelPartsProvider.CreateHandlerModel(methods[i]);
ApplicationModels\IPageApplicationModelPartsProvider.cs (3)
14
/// Creates a <see cref="
PageHandlerModel
"/> for the specified <paramref name="method"/>.s
17
/// <returns>The <see cref="
PageHandlerModel
"/>.</returns>
18
PageHandlerModel
? CreateHandlerModel(MethodInfo method);
ApplicationModels\IPageHandlerModelConvention.cs (4)
7
/// Allows customization of the <see cref="
PageHandlerModel
"/>.
12
/// Called to apply the convention to the <see cref="
PageHandlerModel
"/>.
14
/// <param name="model">The <see cref="
PageHandlerModel
"/>.</param>
15
void Apply(
PageHandlerModel
model);
ApplicationModels\PageApplicationModel.cs (5)
45
HandlerMethods = new List<
PageHandlerModel
>();
67
HandlerMethods = new List<
PageHandlerModel
>(other.HandlerMethods.Select(m => new PageHandlerModel(m)));
146
/// Gets the sequence of <see cref="
PageHandlerModel
"/> instances.
148
public IList<
PageHandlerModel
> HandlerMethods { get; }
151
/// Gets the sequence of <see cref="PagePropertyModel"/> instances on <see cref="
PageHandlerModel
"/>.
ApplicationModels\PageHandlerModel.cs (6)
13
[DebuggerDisplay("Type = {GetType().Name}, Name = {" + nameof(
PageHandlerModel
.Name) + "}")]
17
/// Creates a new <see cref="
PageHandlerModel
"/>.
33
/// Creates a new instance of <see cref="
PageHandlerModel
"/> from a given <see cref="
PageHandlerModel
"/>.
35
/// <param name="other">The <see cref="
PageHandlerModel
"/> which needs to be copied.</param>
36
public PageHandlerModel(
PageHandlerModel
other)
ApplicationModels\PageParameterModel.cs (2)
45
/// The <see cref="
PageHandlerModel
"/>.
47
public
PageHandlerModel
Handler { get; set; } = default!;
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
67
foreach (
var
handlerModel in handlers)
Microsoft.AspNetCore.Mvc.RazorPages.Test (17)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
214
var
handlerModel = new PageHandlerModel(handlerTypeInfo.GetMethod(nameof(ModelWithHandler.OnGetCustomerAsync)), new object[0])
264
var
handlerModel = new PageHandlerModel(handlerMethod, new object[0])
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
906
var
handler = Assert.Single(handlerMethods);
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (14)
83
var
handlerModel = new PageHandlerModel(methodInfo, new[] { handlerModelConvention.Object });
87
handlerModelConvention.Setup(p => p.Apply(It.IsAny<
PageHandlerModel
>()))
88
.Callback((
PageHandlerModel
m) =>
110
var
handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
114
handlerModelConvention.Setup(p => p.Apply(It.IsAny<
PageHandlerModel
>()))
115
.Callback((
PageHandlerModel
m) =>
138
var
handlerModel = new PageHandlerModel(methodInfo, new[] { handlerModelConvention.Object })
145
handlerModelConvention.Setup(p => p.Apply(It.IsAny<
PageHandlerModel
>()))
146
.Callback((
PageHandlerModel
m) =>
169
var
handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
200
var
handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
231
var
handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
267
var
handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());
300
var
handlerModel = new PageHandlerModel(methodInfo, Array.Empty<object>());