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