7 types derived from PageBase
Microsoft.AspNetCore.Mvc.RazorPages (1)
Page.cs (1)
9public abstract class Page : PageBase
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (4)
76private class PageWithoutModelProperty : PageBase 99private class PageWithNonVisibleModel : PageBase 124private class PageWithStaticModel : PageBase 397private class PageWithBindPropertyModel : PageBase
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
249private class Index : PageBase
RazorPagesWebSite (1)
Pages\CustomBaseType\CustomPageBase.cs (1)
7public abstract class CustomPageBase : PageBase
14 references to PageBase
Microsoft.AspNetCore.Mvc.RazorPages (12)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (1)
196declaringType == typeof(PageBase) ||
ApplicationModels\DefaultPageApplicationModelProvider.cs (2)
67if (!typeof(PageBase).GetTypeInfo().IsAssignableFrom(pageTypeInfo)) 71typeof(PageBase).FullName));
Infrastructure\DefaultPageFactoryProvider.cs (4)
44if (!typeof(PageBase).GetTypeInfo().IsAssignableFrom(actionDescriptor.PageTypeInfo)) 48typeof(PageBase).FullName)); 61var page = (PageBase)activatorFactory(pageContext, viewContext);
Infrastructure\PageActionInvoker.cs (3)
26private PageBase? _page; 122_page = (PageBase)CacheEntry.PageFactory(_pageContext, _viewContext); 160_page = (PageBase)CacheEntry.PageFactory(_pageContext, _viewContext);
PageResult.cs (2)
26/// Gets or sets the <see cref="PageBase"/> to be executed. 28public PageBase Page { get; set; } = default!;
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
31$"The type '{typeInfo.FullName}' is not a valid page. A page must inherit from '{typeof(PageBase).FullName}'.",
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
37$"Page created by '{pageActivator.GetType()}' must be an instance of '{typeof(PageBase)}'.",