3 implementations of IPageRouteModelConvention
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\PageConventionCollection.cs (2)
277
private sealed class PageRouteModelConvention :
IPageRouteModelConvention
305
private sealed class FolderRouteModelConvention :
IPageRouteModelConvention
ApplicationModels\PageRouteTransformerConvention.cs (1)
13
public class PageRouteTransformerConvention :
IPageRouteModelConvention
17 references to IPageRouteModelConvention
Microsoft.AspNetCore.Mvc.RazorPages (13)
ApplicationModels\PageConventionCollection.cs (10)
143
/// Creates and adds an <see cref="
IPageRouteModelConvention
"/> that invokes an action on the
148
/// <returns>The added <see cref="
IPageRouteModelConvention
"/>.</returns>
149
public
IPageRouteModelConvention
AddPageRouteModelConvention(string pageName, Action<PageRouteModel> action)
159
/// Creates and adds an <see cref="
IPageRouteModelConvention
"/> that invokes an action on the
171
/// <returns>The added <see cref="
IPageRouteModelConvention
"/>.</returns>
172
public
IPageRouteModelConvention
AddAreaPageRouteModelConvention(string areaName, string pageName, Action<PageRouteModel> action)
184
/// Creates and adds an <see cref="
IPageRouteModelConvention
"/> that invokes an action on
190
public
IPageRouteModelConvention
AddFolderRouteModelConvention(string folderPath, Action<PageRouteModel> action)
200
/// Creates and adds an <see cref="
IPageRouteModelConvention
"/> that invokes an action on
213
public
IPageRouteModelConvention
AddAreaFolderRouteModelConvention(string areaName, string folderPath, Action<PageRouteModel> action)
ApplicationModels\PageRouteTransformerConvention.cs (1)
9
/// An <see cref="
IPageRouteModelConvention
"/> that sets page route resolution
Infrastructure\PageActionDescriptorProvider.cs (2)
20
private readonly
IPageRouteModelConvention
[] _conventions;
37
.OfType<
IPageRouteModelConvention
>()
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
DependencyInjection\MvcRazorPagesMvcBuilderExtensionsTest.cs (2)
21
var
routeModelConvention = Mock.Of<
IPageRouteModelConvention
>();
DependencyInjection\PageConventionCollectionExtensionsTest.cs (2)
999
foreach (
var
convention in conventions.OfType<
IPageRouteModelConvention
>())