48 instantiations of PageApplicationModel
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
106var pageModel = new PageApplicationModel(
Microsoft.AspNetCore.Mvc.RazorPages.Test (47)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (9)
31var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]); 59var pageApplicationModel = new PageApplicationModel(actionDescriptor, typeof(TestModel).GetTypeInfo(), handlerTypeInfo, new object[0]) 110var pageApplicationModel = new PageApplicationModel(actionDescriptor, typeof(TestModel).GetTypeInfo(), handlerTypeInfo, new object[0]) 152var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 219var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 272var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 320var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 368var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 414var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new[] { metadata1, metadata2, });
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (15)
674var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 725var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 752var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 776var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 806var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 834var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 864var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 899var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 942var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 975var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 1092var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1109var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1134var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1165var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1201var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (1)
125PageApplicationModel = new PageApplicationModel(descriptor, handlerType.GetTypeInfo(), Array.Empty<object>()),
ApplicationModels\ViewDataAttributePageApplicationModelProviderTest.cs (1)
51PageApplicationModel = new PageApplicationModel(descriptor, handlerType.GetTypeInfo(), Array.Empty<object>()),
DependencyInjection\PageConventionCollectionExtensionsTest.cs (1)
1027return new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), new object[0]);
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (3)
19var applicationModel = new PageApplicationModel( 48PageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()) 73PageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>())
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (11)
18var model = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 45var model = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), new[] { handlerConvention.Object }); 82var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 109var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 137var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 168var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 199var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 230var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 266var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 299var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 329var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Infrastructure\DefaultPageLoaderTest.cs (6)
44var pageApplicationModel1 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 45var pageApplicationModel2 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 125var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 173c.PageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 242var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 308c.PageApplicationModel = new PageApplicationModel(c.ActionDescriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
112 references to PageApplicationModel
Microsoft.AspNetCore.Identity.UI (1)
IdentityPageModelConvention.cs (1)
11public void Apply(PageApplicationModel model)
Microsoft.AspNetCore.Mvc.RazorPages (56)
ApplicationModels\AuthorizationPageApplicationModelProvider.cs (1)
38var pageModel = context.PageApplicationModel;
ApplicationModels\AutoValidateAntiforgeryPageApplicationModelProvider.cs (1)
22var 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> 23PageApplicationModel applicationModel, 62private static IList<object> CreateEndPointMetadata(PageApplicationModel applicationModel) 75internal static HandlerMethodDescriptor[] CreateHandlerMethods(PageApplicationModel applicationModel) 119internal 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> 60private PageApplicationModel CreateModel( 106var pageModel = new PageApplicationModel( 124internal void PopulateHandlerProperties(PageApplicationModel pageModel) 140internal void PopulateHandlerMethods(PageApplicationModel pageModel) 154internal 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> 15void 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> 55public 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"/>. 38public PageApplicationModel PageApplicationModel { get; set; } = default!;
ApplicationModels\PageConventionCollection.cs (16)
54/// <see cref="PageApplicationModel"/> for the page with the specified name. 61Action<PageApplicationModel> action) 72/// <see cref="PageApplicationModel"/> for the page with the specified name located in the specified area. 87Action<PageApplicationModel> action) 100/// <see cref="PageApplicationModel"/> instances for all page under the specified folder. 105public IPageApplicationModelConvention AddFolderApplicationModelConvention(string folderPath, Action<PageApplicationModel> action) 116/// <see cref="PageApplicationModel"/> instances for all pages under the specified area folder. 131Action<PageApplicationModel> action) 337private readonly Action<PageApplicationModel> _action; 339public PageApplicationModelConvention(string path, Action<PageApplicationModel> action) 344public PageApplicationModelConvention(string? areaName, string path, Action<PageApplicationModel> action) 351public void Apply(PageApplicationModel model) 365private readonly Action<PageApplicationModel> _action; 367public FolderApplicationModelConvention(string folderPath, Action<PageApplicationModel> action) 372public FolderApplicationModelConvention(string? areaName, string folderPath, Action<PageApplicationModel> action) 379public 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"/>. 83public 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. 46public PageApplicationModel Page { get; set; } = default!;
ApplicationModels\ResponseCacheFilterApplicationModelProvider.cs (1)
31var pageModel = context.PageApplicationModel;
ApplicationModels\TempDataFilterPageApplicationModelProvider.cs (1)
30var pageApplicationModel = context.PageApplicationModel;
DependencyInjection\PageConventionCollectionExtensions.cs (1)
25Func<PageApplicationModel, IFilterMetadata> factory)
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
58PageApplicationModel pageApplicationModel)
Microsoft.AspNetCore.Mvc.RazorPages.Test (54)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (9)
31var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]); 59var pageApplicationModel = new PageApplicationModel(actionDescriptor, typeof(TestModel).GetTypeInfo(), handlerTypeInfo, new object[0]) 110var pageApplicationModel = new PageApplicationModel(actionDescriptor, typeof(TestModel).GetTypeInfo(), handlerTypeInfo, new object[0]) 152var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 219var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 272var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 320var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 368var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new object[0]) 414var pageApplicationModel = new PageApplicationModel(actionDescriptor, handlerTypeInfo, new[] { metadata1, metadata2, });
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (20)
454var pageModel = context.PageApplicationModel; 475var pageModel = context.PageApplicationModel; 544var pageModel = context.PageApplicationModel; 582var pageModel = context.PageApplicationModel; 628var pageModel = context.PageApplicationModel; 674var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 725var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 752var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 776var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 806var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 834var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 864var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 899var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 942var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 975var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, new object[0]); 1092var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1109var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1134var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1165var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true)); 1201var pageModel = new PageApplicationModel(new PageActionDescriptor(), typeInfo, typeInfo.GetCustomAttributes(inherit: true));
DependencyInjection\PageConventionCollectionExtensionsTest.cs (3)
1007private static void ApplyConventions(PageConventionCollection conventions, PageApplicationModel[] models) 1011foreach (var model in models) 1018private PageApplicationModel CreateApplicationModel(string relativePath, string viewEnginePath, string areaName = null)
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (1)
19var applicationModel = new PageApplicationModel(
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (17)
18var model = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 21convention.Setup(c => c.Apply(It.IsAny<PageApplicationModel>())) 22.Callback((PageApplicationModel m) => 45var model = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), new[] { handlerConvention.Object }); 48globalConvention.Setup(c => c.Apply(It.IsAny<PageApplicationModel>())) 49.Callback((PageApplicationModel m) => 55handlerConvention.Setup(c => c.Apply(It.IsAny<PageApplicationModel>())) 56.Callback((PageApplicationModel m) => 82var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 109var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 137var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 168var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 199var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 230var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 266var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 299var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 329var applicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
Infrastructure\DefaultPageLoaderTest.cs (4)
44var pageApplicationModel1 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 45var pageApplicationModel2 = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 125var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>()); 242var pageApplicationModel = new PageApplicationModel(descriptor, typeof(object).GetTypeInfo(), Array.Empty<object>());
RazorPagesWebSite (1)
Conventions\CustomModelTypeConvention.cs (1)
11public void Apply(PageApplicationModel model)