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