3 writes to Conventions
Microsoft.AspNetCore.Mvc.RazorPages (1)
DependencyInjection\RazorPagesOptionsSetup.cs (1)
23
options.
Conventions
= new PageConventionCollection(_serviceProvider);
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\DefaultPageLoaderTest.cs (1)
20
private readonly IOptions<RazorPagesOptions> RazorPagesOptions = Options.Create(new RazorPagesOptions {
Conventions
= new PageConventionCollection(Mock.Of<IServiceProvider>()) });
Infrastructure\PageActionDescriptorProviderTest.cs (1)
371
return Options.Create(new RazorPagesOptions {
Conventions
= new PageConventionCollection(Mock.Of<IServiceProvider>()) });
13 references to Conventions
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 (3)
DependencyInjection\MvcRazorPagesMvcBuilderExtensionsTest.cs (3)
25
options.
Conventions
.Add(applicationModelConvention);
26
options.
Conventions
.Add(routeModelConvention);
32
var conventions = accessor.Value.
Conventions
;
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");