7 instantiations of FilterItem
Microsoft.AspNetCore.Mvc.Core (2)
Filters\FilterFactory.cs (2)
29
staticFilterItems[i] = new
FilterItem
(orderedFilters[i]);
81
new
FilterItem
(filterItem.Descriptor)
Microsoft.AspNetCore.Mvc.Core.Test (5)
Filters\FilterFactoryTest.cs (1)
215
new
FilterItem
(new FilterDescriptor(filter, FilterScope.Global), filter)
Filters\FilterProviderTest.cs (4)
21
new
FilterItem
(new FilterDescriptor(filter, FilterScope.Global)),
52
new
FilterItem
(new FilterDescriptor(filterFactory.Object, FilterScope.Global)),
85
new
FilterItem
(new FilterDescriptor(filterFactory.Object, FilterScope.Global)),
116
new
FilterItem
(new FilterDescriptor(filterFactory.Object, FilterScope.Global)),
37 references to FilterItem
Microsoft.AspNetCore.Mvc.Abstractions (9)
Filters\FilterItem.cs (2)
18
/// Creates a new <see cref="
FilterItem
"/>.
29
/// Creates a new <see cref="
FilterItem
"/>.
Filters\FilterProviderContext.cs (6)
16
/// The <see cref="
FilterItem
"/>s, initially created from <see cref="FilterDescriptor"/>s or a cache entry.
18
public FilterProviderContext(ActionContext actionContext, IList<
FilterItem
> items)
33
/// Gets or sets the <see cref="
FilterItem
"/>s, initially created from <see cref="FilterDescriptor"/>s or a
34
/// cache entry. <see cref="IFilterProvider"/>s should set <see cref="
FilterItem
.Filter"/> on existing items or
35
/// add new <see cref="
FilterItem
"/>s to make executable filters available.
37
public IList<
FilterItem
> Results { get; set; }
Filters\IFilterProvider.cs (1)
7
/// A <see cref="
FilterItem
"/> provider. Implementations should update <see cref="FilterProviderContext.Results"/>
Microsoft.AspNetCore.Mvc.Core (12)
Filters\DefaultFilterProvider.cs (1)
35
public static void ProvideFilter(FilterProviderContext context,
FilterItem
filterItem)
Filters\FilterFactory.cs (7)
19
var staticFilterItems = new
FilterItem
[actionDescriptor.FilterDescriptors.Count];
32
var allFilterItems = new List<
FilterItem
>(staticFilterItems);
43
var
item = staticFilterItems[i];
64
FilterItem
[] cachedFilterItems)
76
var filterItems = new List<
FilterItem
>(cachedFilterItems.Length);
79
var
filterItem = cachedFilterItems[i];
94
List<
FilterItem
> filterItems)
Filters\FilterFactoryResult.cs (2)
9
FilterItem
[] cacheableFilters,
16
public
FilterItem
[] CacheableFilters { get; }
Infrastructure\ControllerActionInvokerCacheEntry.cs (2)
13
FilterItem
[] cachedFilters,
30
public
FilterItem
[] CachedFilters { get; }
Microsoft.AspNetCore.Mvc.Core.Test (12)
Filters\FilterProviderTest.cs (9)
19
var context = CreateFilterContext(new List<
FilterItem
>()
33
var
item = Assert.Single(results);
50
var context = CreateFilterContext(new List<
FilterItem
>()
64
var
item = Assert.Single(results);
83
var context = CreateFilterContext(new List<
FilterItem
>()
96
var
item = Assert.Single(results);
114
var context = CreateFilterContext(new List<
FilterItem
>()
127
var
item = Assert.Single(results);
139
private FilterProviderContext CreateFilterContext(List<
FilterItem
> items)
Filters\MiddlewareFilterTest.cs (1)
446
new
FilterItem
[0],
Infrastructure\ControllerActionInvokerTest.cs (2)
1424
new
FilterItem
[0],
1747
new
FilterItem
[0],
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\PageActionInvokerCache.cs (1)
73
FilterItem
[] cachedFilters)
Infrastructure\PageActionInvokerCacheEntry.cs (2)
25
FilterItem
[] cacheableFilters)
73
public
FilterItem
[] CacheableFilters { get; }
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerTest.cs (1)
1556
new
FilterItem
[0]);