48 instantiations of PageApplicationModel
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
106
var pageModel = new
PageApplicationModel
(
Microsoft.AspNetCore.Mvc.RazorPages.Test (47)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (9)
31
var pageApplicationModel = new
PageApplicationModel
(actionDescriptor, handlerTypeInfo, new object[0]);
59
var pageApplicationModel = new
PageApplicationModel
(actionDescriptor, typeof(TestModel).GetTypeInfo(), handlerTypeInfo, new object[0])
110
var pageApplicationModel = new
PageApplicationModel
(actionDescriptor, typeof(TestModel).GetTypeInfo(), handlerTypeInfo, new object[0])
152
var pageApplicationModel = new
PageApplicationModel
(actionDescriptor, handlerTypeInfo, new object[0])
219
var pageApplicationModel = new
PageApplicationModel
(actionDescriptor, handlerTypeInfo, new object[0])
272
var pageApplicationModel = new
PageApplicationModel
(actionDescriptor, handlerTypeInfo, new object[0])
320
var pageApplicationModel = new
PageApplicationModel
(actionDescriptor, handlerTypeInfo, new object[0])
368
var pageApplicationModel = new
PageApplicationModel
(actionDescriptor, handlerTypeInfo, new object[0])
414
var pageApplicationModel = new
PageApplicationModel
(actionDescriptor, handlerTypeInfo, new[] { metadata1, metadata2, });
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (15)
674
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
725
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
752
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
776
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
806
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
834
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
864
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
899
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
942
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
975
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, new object[0]);
1092
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1109
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1134
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1165
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1201
var pageModel = new
PageApplicationModel
(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (1)
125
PageApplicationModel = new
PageApplicationModel
(descriptor, handlerType.GetTypeInfo(), Array.Empty<object>()),
ApplicationModels\ViewDataAttributePageApplicationModelProviderTest.cs (1)
51
PageApplicationModel = new
PageApplicationModel
(descriptor, handlerType.GetTypeInfo(), Array.Empty<object>()),
DependencyInjection\PageConventionCollectionExtensionsTest.cs (1)
1027
return new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), new object[0]);
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (3)
19
var applicationModel = new
PageApplicationModel
(
48
PageApplicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>())
73
PageApplicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>())
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (11)
18
var model = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
45
var model = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), new[] { handlerConvention.Object });
82
var applicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
109
var applicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
137
var applicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
168
var applicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
199
var applicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
230
var applicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
266
var applicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
299
var applicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
329
var applicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Infrastructure\DefaultPageLoaderTest.cs (6)
44
var pageApplicationModel1 = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
45
var pageApplicationModel2 = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
125
var pageApplicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
173
c.PageApplicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
242
var pageApplicationModel = new
PageApplicationModel
(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
308
c.PageApplicationModel = new
PageApplicationModel
(c.ActionDescriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
112 references to PageApplicationModel
Microsoft.AspNetCore.Identity.UI (1)
IdentityPageModelConvention.cs (1)
11
public void Apply(
PageApplicationModel
model)
Microsoft.AspNetCore.Mvc.RazorPages (56)
ApplicationModels\AuthorizationPageApplicationModelProvider.cs (1)
38
var
pageModel = context.PageApplicationModel;
ApplicationModels\AutoValidateAntiforgeryPageApplicationModelProvider.cs (1)
22
var
pageApplicationModel = context.PageApplicationModel;
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (6)
12
/// Constructs a <see cref="CompiledPageActionDescriptor"/> from an <see cref="
PageApplicationModel
"/>.
19
/// <param name="applicationModel">The <see cref="
PageApplicationModel
"/>.</param>
23
PageApplicationModel
applicationModel,
62
private static IList<object> CreateEndPointMetadata(
PageApplicationModel
applicationModel)
75
internal static HandlerMethodDescriptor[] CreateHandlerMethods(
PageApplicationModel
applicationModel)
119
internal static PageBoundPropertyDescriptor[] CreateBoundProperties(
PageApplicationModel
applicationModel)
ApplicationModels\DefaultPageApplicationModelProvider.cs (7)
55
/// Creates a <see cref="
PageApplicationModel
"/> for the given <paramref name="pageTypeInfo"/>.
59
/// <returns>A <see cref="
PageApplicationModel
"/> for the given <see cref="TypeInfo"/>.</returns>
60
private
PageApplicationModel
CreateModel(
106
var
pageModel = new PageApplicationModel(
124
internal void PopulateHandlerProperties(
PageApplicationModel
pageModel)
140
internal void PopulateHandlerMethods(
PageApplicationModel
pageModel)
154
internal void PopulateFilters(
PageApplicationModel
pageModel)
ApplicationModels\IPageApplicationModelConvention.cs (4)
7
/// Allows customization of the <see cref="
PageApplicationModel
"/>.
12
/// Called to apply the convention to the <see cref="
PageApplicationModel
"/>.
14
/// <param name="model">The <see cref="
PageApplicationModel
"/>.</param>
15
void Apply(
PageApplicationModel
model);
ApplicationModels\IPageApplicationModelPartsProvider.cs (1)
9
/// Provides parts that are used to construct a <see cref="
PageApplicationModel
" /> instance
ApplicationModels\IPageApplicationModelProvider.cs (2)
33
/// Executed for the first pass of building <see cref="
PageApplicationModel
"/> instances. See <see cref="Order"/>.
39
/// Executed for the second pass of building <see cref="
PageApplicationModel
"/> instances. See <see cref="Order"/>.
ApplicationModels\PageApplicationModel.cs (6)
18
/// Initializes a new instance of <see cref="
PageApplicationModel
"/>.
29
/// Initializes a new instance of <see cref="
PageApplicationModel
"/>.
52
/// A copy constructor for <see cref="
PageApplicationModel
"/>.
54
/// <param name="other">The <see cref="
PageApplicationModel
"/> to copy from.</param>
55
public PageApplicationModel(
PageApplicationModel
other)
112
/// Stores arbitrary metadata properties associated with the <see cref="
PageApplicationModel
"/>.
ApplicationModels\PageApplicationModelProviderContext.cs (2)
36
/// Gets or sets the <see cref="ApplicationModels.
PageApplicationModel
"/>.
38
public
PageApplicationModel
PageApplicationModel { get; set; } = default!;
ApplicationModels\PageConventionCollection.cs (16)
54
/// <see cref="
PageApplicationModel
"/> for the page with the specified name.
61
Action<
PageApplicationModel
> action)
72
/// <see cref="
PageApplicationModel
"/> for the page with the specified name located in the specified area.
87
Action<
PageApplicationModel
> action)
100
/// <see cref="
PageApplicationModel
"/> instances for all page under the specified folder.
105
public IPageApplicationModelConvention AddFolderApplicationModelConvention(string folderPath, Action<
PageApplicationModel
> action)
116
/// <see cref="
PageApplicationModel
"/> instances for all pages under the specified area folder.
131
Action<
PageApplicationModel
> action)
337
private readonly Action<
PageApplicationModel
> _action;
339
public PageApplicationModelConvention(string path, Action<
PageApplicationModel
> action)
344
public PageApplicationModelConvention(string? areaName, string path, Action<
PageApplicationModel
> action)
351
public void Apply(
PageApplicationModel
model)
365
private readonly Action<
PageApplicationModel
> _action;
367
public FolderApplicationModelConvention(string folderPath, Action<
PageApplicationModel
> action)
372
public FolderApplicationModelConvention(string? areaName, string folderPath, Action<
PageApplicationModel
> action)
379
public void Apply(
PageApplicationModel
model)
ApplicationModels\PageHandlerModel.cs (3)
11
/// Represents a handler in a <see cref="
PageApplicationModel
"/>.
81
/// Gets or sets the <see cref="
PageApplicationModel
"/>.
83
public
PageApplicationModel
Page { get; set; } = default!;
ApplicationModels\PagePropertyModel.cs (3)
11
/// Represents a property in a <see cref="
PageApplicationModel
"/>.
44
/// Gets or sets the <see cref="
PageApplicationModel
"/> this <see cref="PagePropertyModel"/> is associated with.
46
public
PageApplicationModel
Page { get; set; } = default!;
ApplicationModels\ResponseCacheFilterApplicationModelProvider.cs (1)
31
var
pageModel = context.PageApplicationModel;
ApplicationModels\TempDataFilterPageApplicationModelProvider.cs (1)
30
var
pageApplicationModel = context.PageApplicationModel;
DependencyInjection\PageConventionCollectionExtensions.cs (1)
25
Func<
PageApplicationModel
, IFilterMetadata> factory)
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
58
PageApplicationModel
pageApplicationModel)
Microsoft.AspNetCore.Mvc.RazorPages.Test (54)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (9)
31
var
pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]);
59
var
pageApplicationModel = new PageApplicationModel(actionDescriptor, typeof(TestModel).GetTypeInfo(), handlerTypeInfo, new object[0])
110
var
pageApplicationModel = new PageApplicationModel(actionDescriptor, typeof(TestModel).GetTypeInfo(), handlerTypeInfo, new object[0])
152
var
pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0])
219
var
pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0])
272
var
pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0])
320
var
pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0])
368
var
pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0])
414
var
pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new[] { metadata1, metadata2, });
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (20)
454
var
pageModel = context.PageApplicationModel;
475
var
pageModel = context.PageApplicationModel;
544
var
pageModel = context.PageApplicationModel;
582
var
pageModel = context.PageApplicationModel;
628
var
pageModel = context.PageApplicationModel;
674
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
725
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
752
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
776
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
806
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
834
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
864
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
899
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
942
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
975
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]);
1092
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1109
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1134
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1165
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
1201
var
pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
DependencyInjection\PageConventionCollectionExtensionsTest.cs (3)
1007
private static void ApplyConventions(PageConventionCollection conventions,
PageApplicationModel
[] models)
1011
foreach (
var
model in models)
1018
private
PageApplicationModel
CreateApplicationModel(string relativePath, string viewEnginePath, string areaName = null)
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (1)
19
var
applicationModel = new PageApplicationModel(
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (17)
18
var
model = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
21
convention.Setup(c => c.Apply(It.IsAny<
PageApplicationModel
>()))
22
.Callback((
PageApplicationModel
m) =>
45
var
model = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), new[] { handlerConvention.Object });
48
globalConvention.Setup(c => c.Apply(It.IsAny<
PageApplicationModel
>()))
49
.Callback((
PageApplicationModel
m) =>
55
handlerConvention.Setup(c => c.Apply(It.IsAny<
PageApplicationModel
>()))
56
.Callback((
PageApplicationModel
m) =>
82
var
applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
109
var
applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
137
var
applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
168
var
applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
199
var
applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
230
var
applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
266
var
applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
299
var
applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
329
var
applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Infrastructure\DefaultPageLoaderTest.cs (4)
44
var
pageApplicationModel1 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
45
var
pageApplicationModel2 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
125
var
pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
242
var
pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
RazorPagesWebSite (1)
Conventions\CustomModelTypeConvention.cs (1)
11
public void Apply(
PageApplicationModel
model)