2 instantiations of PageConventionCollection
Microsoft.AspNetCore.Mvc.RazorPages (2)
DependencyInjection\RazorPagesOptionsSetup.cs (1)
23options.Conventions = new PageConventionCollection(_serviceProvider);
RazorPagesOptions.cs (1)
22public PageConventionCollection Conventions { get; internal set; } = new();
125 references to PageConventionCollection
Microsoft.AspNetCore.Mvc.RazorPages (76)
ApplicationModels\PageConventionCollection.cs (2)
20/// Initializes a new instance of the <see cref="PageConventionCollection"/> class that is empty. 28/// Initializes a new instance of the <see cref="PageConventionCollection"/> class
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (4)
63PageConventionCollection.EnsureValidPageName(page, nameof(page)); 121PageConventionCollection.EnsureValidPageName(page, nameof(page)); 175PageConventionCollection.EnsureValidPageName(page, nameof(page)); 235PageConventionCollection.EnsureValidPageName(page, nameof(page));
DependencyInjection\PageConventionCollectionExtensions.cs (67)
13/// Extensions for <see cref="PageConventionCollection"/>. 20/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 24this PageConventionCollection conventions, 36/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 38/// <returns>The <see cref="PageConventionCollection"/>.</returns> 39public static PageConventionCollection ConfigureFilter(this PageConventionCollection conventions, IFilterMetadata filter) 52/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 54/// <returns>The <see cref="PageConventionCollection"/>.</returns> 55public static PageConventionCollection Add(this PageConventionCollection conventions, IParameterModelBaseConvention convention) 68/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 70/// <returns>The <see cref="PageConventionCollection"/>.</returns> 71public static PageConventionCollection AllowAnonymousToPage(this PageConventionCollection conventions, string pageName) 93/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 102/// <returns>The <see cref="PageConventionCollection"/>.</returns> 103public static PageConventionCollection AllowAnonymousToAreaPage( 104this PageConventionCollection conventions, 129/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 131/// <returns>The <see cref="PageConventionCollection"/>.</returns> 132public static PageConventionCollection AllowAnonymousToFolder(this PageConventionCollection conventions, string folderPath) 154/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 163/// <returns>The <see cref="PageConventionCollection"/>.</returns> 164public static PageConventionCollection AllowAnonymousToAreaFolder( 165this PageConventionCollection conventions, 190/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 193/// <returns>The <see cref="PageConventionCollection"/>.</returns> 194public static PageConventionCollection AuthorizePage(this PageConventionCollection conventions, string pageName, string policy) 216/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 218/// <returns>The <see cref="PageConventionCollection"/>.</returns> 219public static PageConventionCollection AuthorizePage(this PageConventionCollection conventions, string pageName) => 225/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 234/// <returns>The <see cref="PageConventionCollection"/>.</returns> 235public static PageConventionCollection AuthorizeAreaPage(this PageConventionCollection conventions, string areaName, string pageName) 241/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 251/// <returns>The <see cref="PageConventionCollection"/>.</returns> 252public static PageConventionCollection AuthorizeAreaPage( 253this PageConventionCollection conventions, 279/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 282/// <returns>The <see cref="PageConventionCollection"/>.</returns> 283public static PageConventionCollection AuthorizeFolder(this PageConventionCollection conventions, string folderPath, string policy) 305/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 307/// <returns>The <see cref="PageConventionCollection"/>.</returns> 308public static PageConventionCollection AuthorizeFolder(this PageConventionCollection conventions, string folderPath) => 314/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 323/// <returns>The <see cref="PageConventionCollection"/>.</returns> 324public static PageConventionCollection AuthorizeAreaFolder(this PageConventionCollection conventions, string areaName, string folderPath) 330/// <param name="conventions">The <see cref="PageConventionCollection"/> to configure.</param> 340/// <returns>The <see cref="PageConventionCollection"/>.</returns> 341public static PageConventionCollection AuthorizeAreaFolder( 342this PageConventionCollection conventions, 372/// <param name="conventions">The <see cref="PageConventionCollection"/>.</param> 375/// <returns>The <see cref="PageConventionCollection"/>.</returns> 376public static PageConventionCollection AddPageRoute(this PageConventionCollection conventions, string pageName, [StringSyntax("Route")] string route) 395/// <param name="conventions">The <see cref="PageConventionCollection"/>.</param> 405/// <returns>The <see cref="PageConventionCollection"/>.</returns> 406public static PageConventionCollection AddAreaPageRoute( 407this PageConventionCollection conventions,
Infrastructure\CompiledPageActionDescriptorFactory.cs (2)
20private readonly PageConventionCollection _conventions; 57PageConventionCollection conventions,
RazorPagesOptions.cs (1)
22public PageConventionCollection Conventions { get; internal set; } = new();
Microsoft.AspNetCore.Mvc.RazorPages.Test (49)
ApplicationModels\PageConventionCollectionTest.cs (7)
18() => PageConventionCollection.EnsureValidPageName(pageName), 32() => PageConventionCollection.EnsureValidPageName(pageName), 45() => PageConventionCollection.EnsureValidPageName(pageName), 57() => PageConventionCollection.EnsureValidFolderPath(folderPath), 70() => PageConventionCollection.EnsureValidFolderPath(folderPath), 79var collection = new PageConventionCollection(Mock.Of<IServiceProvider>()) 99var collection = new PageConventionCollection(Mock.Of<IServiceProvider>())
DependencyInjection\MvcRazorPagesMvcBuilderExtensionsTest.cs (1)
32var conventions = accessor.Value.Conventions;
DependencyInjection\PageConventionCollectionExtensionsTest.cs (30)
23var conventions = GetConventions(); 46var conventions = GetConventions(); 81var conventions = GetConventions(enableEndpointRouting: false); 114var conventions = GetConventions(); 140var conventions = GetConventions(enableEndpointRouting: false); 167var conventions = GetConventions(); 212var conventions = GetConventions(enableEndpointRouting: false); 252var conventions = GetConventions(); 298var conventions = GetConventions(enableEndpointRouting: false); 336var conventions = GetConventions(); 373var conventions = GetConventions(enableEndpointRouting: false); 408var conventions = GetConventions(); 437var conventions = GetConventions(enableEndpointRouting: false); 466var conventions = GetConventions(); 493var conventions = GetConventions(enableEndpointRouting: false); 520var conventions = GetConventions(); 547var conventions = GetConventions(enableEndpointRouting: false); 574var conventions = GetConventions(); 603var conventions = GetConventions(enableEndpointRouting: false); 634var conventions = GetConventions(); 671var conventions = GetConventions(enableEndpointRouting: false); 706var conventions = GetConventions(); 745var conventions = GetConventions(enableEndpointRouting: false); 784var conventions = GetConventions(); 823var conventions = GetConventions(enableEndpointRouting: false); 862var conventions = GetConventions(); 924var conventions = GetConventions(); 976private PageConventionCollection GetConventions(bool enableEndpointRouting = true) 997private static void ApplyConventions(PageConventionCollection conventions, PageRouteModel[] models) 1007private static void ApplyConventions(PageConventionCollection conventions, PageApplicationModel[] models)
Infrastructure\CompiledPageActionDescriptorFactoryTest.cs (11)
27var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()) 61var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()) 93var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()); 120var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()) { handlerModelConvention.Object }; 151var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()); 182var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()); 213var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()) { parameterModelConvention.Object }; 248var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()); 282var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()); 313var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>()) { propertyModelConvention.Object }; 345var conventionCollection = new PageConventionCollection(Mock.Of<IServiceProvider>());