4 implementations of IPageApplicationModelConvention
Microsoft.AspNetCore.Identity.UI (1)
IdentityPageModelConvention.cs (1)
9
internal sealed class IdentityPageModelConvention<TUser> :
IPageApplicationModelConvention
where TUser : class
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageConventionCollection.cs (2)
333
private sealed class PageApplicationModelConvention :
IPageApplicationModelConvention
361
private sealed class FolderApplicationModelConvention :
IPageApplicationModelConvention
RazorPagesWebSite (1)
Conventions\CustomModelTypeConvention.cs (1)
9
internal class CustomModelTypeConvention :
IPageApplicationModelConvention
24 references to IPageApplicationModelConvention
Microsoft.AspNetCore.Mvc.RazorPages (17)
ApplicationModels\PageConventionCollection.cs (14)
53
/// Creates and adds an <see cref="
IPageApplicationModelConvention
"/> that invokes an action on the
58
/// <returns>The added <see cref="
IPageApplicationModelConvention
"/>.</returns>
59
public
IPageApplicationModelConvention
AddPageApplicationModelConvention(
71
/// Creates and adds an <see cref="
IPageApplicationModelConvention
"/> that invokes an action on the
83
/// <returns>The added <see cref="
IPageApplicationModelConvention
"/>.</returns>
84
public
IPageApplicationModelConvention
AddAreaPageApplicationModelConvention(
99
/// Creates and adds an <see cref="
IPageApplicationModelConvention
"/> that invokes an action on
104
/// <returns>The added <see cref="
IPageApplicationModelConvention
"/>.</returns>
105
public
IPageApplicationModelConvention
AddFolderApplicationModelConvention(string folderPath, Action<PageApplicationModel> action)
115
/// Creates and adds an <see cref="
IPageApplicationModelConvention
"/> that invokes an action on
127
/// <returns>The added <see cref="
IPageApplicationModelConvention
"/>.</returns>
128
public
IPageApplicationModelConvention
AddAreaFolderApplicationModelConvention(
189
/// <returns>The added <see cref="
IPageApplicationModelConvention
"/>.</returns>
212
/// <returns>The added <see cref="
IPageApplicationModelConvention
"/>.</returns>
DependencyInjection\PageConventionCollectionExtensions.cs (1)
23
public static
IPageApplicationModelConvention
ConfigureFilter(
Infrastructure\CompiledPageActionDescriptorFactory.cs (2)
60
var applicationModelConventions = GetConventions<
IPageApplicationModelConvention
>(pageApplicationModel.HandlerTypeAttributes);
61
foreach (
var
convention in applicationModelConventions)
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
DependencyInjection\MvcRazorPagesMvcBuilderExtensionsTest.cs (2)
20
var
applicationModelConvention = Mock.Of<
IPageApplicationModelConvention
>();
DependencyInjection\PageConventionCollectionExtensionsTest.cs (2)
1009
foreach (
var
convention in conventions.OfType<
IPageApplicationModelConvention
>())
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (3)
20
var convention = new Mock<
IPageApplicationModelConvention
>();
44
var handlerConvention = new Mock<
IPageApplicationModelConvention
>();
47
var globalConvention = new Mock<
IPageApplicationModelConvention
>();