1 instantiation of ActionSelectionTable
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ActionSelectionTable.cs (1)
159return new ActionSelectionTable<T>(version, routeKeys.ToArray(), ordinalEntries, ordinalIgnoreCaseEntries);
39 references to ActionSelectionTable
Microsoft.AspNetCore.Mvc.Core (14)
Infrastructure\ActionSelectionTable.cs (3)
59public static ActionSelectionTable<ActionDescriptor> Create(ActionDescriptorCollection actions) 78public static ActionSelectionTable<Endpoint> Create(IEnumerable<Endpoint> endpoints) 100private static ActionSelectionTable<T> CreateCore<T>(
Infrastructure\ActionSelector.cs (5)
24private ActionSelectionTable<ActionDescriptor>? _cache; 45private ActionSelectionTable<ActionDescriptor> Current 50var cache = Volatile.Read(ref _cache); 57cache = ActionSelectionTable<ActionDescriptor>.Create(actions); 67var cache = Current;
Routing\DynamicControllerEndpointSelector.cs (6)
12private readonly DataSourceDependentCache<ActionSelectionTable<Endpoint>> _cache; 18_cache = new DataSourceDependentCache<ActionSelectionTable<Endpoint>>(dataSource, Initialize); 21private ActionSelectionTable<Endpoint> Table => _cache.EnsureInitialized(); 27var table = Table; 32private static ActionSelectionTable<Endpoint> Initialize(IReadOnlyList<Endpoint> endpoints) 34return ActionSelectionTable<Endpoint>.Create(endpoints);
Microsoft.AspNetCore.Mvc.Core.Test (19)
Infrastructure\ActionSelectionTableTest.cs (19)
42var table = CreateTableWithActionDescriptors(actions); 79var table = CreateTableWithActionDescriptors(actions); 119var table = CreateTableWithEndpoints(actions); 157var table = CreateTableWithActionDescriptors(actions); 192var table = CreateTableWithEndpoints(actions); 227var table = CreateTableWithActionDescriptors(actions); 257var table = CreateTableWithActionDescriptors(actions); 287var table = CreateTableWithEndpoints(actions); 336var table = CreateTableWithActionDescriptors(actions); 385var table = CreateTableWithActionDescriptors(actions); 412var table = CreateTableWithActionDescriptors(actions); 443var table = CreateTableWithActionDescriptors(actions); 474var table = CreateTableWithActionDescriptors(actions); 505var table = CreateTableWithActionDescriptors(actions); 534var table = CreateTableWithActionDescriptors(actions); 546private static ActionSelectionTable<ActionDescriptor> CreateTableWithActionDescriptors(IReadOnlyList<ActionDescriptor> actions) 548return ActionSelectionTable<ActionDescriptor>.Create(new ActionDescriptorCollection(actions, 0)); 551private static ActionSelectionTable<Endpoint> CreateTableWithEndpoints(IReadOnlyList<ActionDescriptor> actions) 563return ActionSelectionTable<ActionDescriptor>.Create(endpoints);
Microsoft.AspNetCore.Mvc.RazorPages (6)
Infrastructure\DynamicPageEndpointSelector.cs (6)
13private readonly DataSourceDependentCache<ActionSelectionTable<Endpoint>> _cache; 20_cache = new DataSourceDependentCache<ActionSelectionTable<Endpoint>>(dataSource, Initialize); 23private ActionSelectionTable<Endpoint> Table => _cache.EnsureInitialized(); 29var table = Table; 34private static ActionSelectionTable<Endpoint> Initialize(IReadOnlyList<Endpoint> endpoints) 36return ActionSelectionTable<Endpoint>.Create(endpoints);