1 write to Conventions
Microsoft.AspNetCore.Mvc.RazorPages (1)
DependencyInjection\RazorPagesOptionsSetup.cs (1)
23options.Conventions = new PageConventionCollection(_serviceProvider);
34 references to Conventions
Identity.DefaultUI.WebSite (2)
NoIdentityStartup.cs (2)
30options.Conventions.AuthorizeFolder("/Areas/Identity/Pages/Account/Manage"); 31options.Conventions.AuthorizePage("/Areas/Identity/Pages/Account/Logout");
Identity.ExternalClaims (3)
Startup.cs (3)
63options.Conventions.AuthorizeFolder("/Account/Manage"); 64options.Conventions.AuthorizePage("/Account/Logout"); 65options.Conventions.AuthorizePage("/MyClaims");
Microsoft.AspNetCore.Identity.UI (4)
IdentityDefaultUIConfigureOptions.cs (4)
31options.Conventions.AuthorizeAreaFolder(IdentityUIDefaultAreaName, "/Account/Manage"); 32options.Conventions.AuthorizeAreaPage(IdentityUIDefaultAreaName, "/Account/Logout"); 34options.Conventions.AddAreaFolderApplicationModelConvention( 38options.Conventions.AddAreaFolderApplicationModelConvention(
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
29_conventions = pageOptions.Conventions;
Infrastructure\PageActionDescriptorProvider.cs (1)
36_conventions = pagesOptionsAccessor.Value.Conventions
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
DependencyInjection\MvcRazorPagesMvcBuilderExtensionsTest.cs (1)
32var conventions = accessor.Value.Conventions;
Mvc.RoutingWebSite (5)
Startup.cs (2)
22options.Conventions.AddPageRoute("/PageRouteTransformer/PageWithConfiguredRoute", "/PageRouteTransformer/NewConventionRoute/{id?}"); 23options.Conventions.AddFolderRouteModelConvention("/PageRouteTransformer", model =>
StartupForLinkGenerator.cs (1)
22options.Conventions.AddFolderRouteModelConvention("/PageRouteTransformer", model =>
StartupRoutingDifferentBranches.cs (2)
23options.Conventions.AddPageRoute("/PageRouteTransformer/PageWithConfiguredRoute", "/PageRouteTransformer/NewConventionRoute/{id?}"); 24options.Conventions.AddFolderRouteModelConvention("/PageRouteTransformer", model =>
RazorPagesWebSite (13)
Startup.cs (1)
17options.Conventions.AuthorizeFolder("/Admin");
StartupWithBasePath.cs (5)
26options.Conventions.AuthorizePage("/Conventions/Auth"); 27options.Conventions.AuthorizeFolder("/Conventions/AuthFolder"); 28options.Conventions.AuthorizeAreaFolder("Accounts", "/RequiresAuth"); 29options.Conventions.AllowAnonymousToAreaPage("Accounts", "/RequiresAuth/AllowAnonymous"); 30options.Conventions.Add(new CustomModelTypeConvention());
StartupWithClientValidationDisabled.cs (1)
18options.Conventions.AuthorizeFolder("/Admin");
StartupWithoutEndpointRouting.cs (6)
19options.Conventions.AuthorizePage("/HelloWorldWithAuth"); 20options.Conventions.AuthorizeFolder("/Pages/Admin"); 21options.Conventions.AllowAnonymousToPage("/Pages/Admin/Login"); 22options.Conventions.AddPageRoute("/HelloWorldWithRoute", "Different-Route/{text}"); 23options.Conventions.AddPageRoute("/Pages/NotTheRoot", string.Empty); 24options.Conventions.Add(new CustomModelTypeConvention());
SecurityWebSite (4)
StartupWithGlobalAuthFilter.cs (2)
33options.Conventions.AllowAnonymousToPage("/AllowAnonymousPageViaConvention"); 34options.Conventions.AuthorizePage("/AuthorizePageViaConvention", "RequireClaimB");
StartupWithGlobalAuthFilterWithoutEndpointRouting.cs (2)
34options.Conventions.AllowAnonymousToPage("/AllowAnonymousPageViaConvention"); 35options.Conventions.AuthorizePage("/AuthorizePageViaConvention", "RequireClaimB");