7 writes to Filters
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageApplicationModel.cs (2)
41Filters = new List<IFilterMetadata>(); 64Filters = new List<IFilterMetadata>(other.Filters);
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (3)
63Filters = 114Filters = 156Filters =
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (2)
50Filters = { expected }, 75Filters = { expected },
128 references to Filters
Microsoft.AspNetCore.Identity.UI (1)
IdentityDefaultUIConfigureOptions.cs (1)
41pam => pam.Filters.Add(new ExternalLoginsPageFilter<TUser>()));
Microsoft.AspNetCore.Mvc.RazorPages (23)
ApplicationModels\AuthorizationPageApplicationModelProvider.cs (2)
42pageModel.Filters.Add(AuthorizationApplicationModelProvider.GetFilter(_policyProvider, authorizeData)); 46pageModel.Filters.Add(new AllowAnonymousFilter());
ApplicationModels\AutoValidateAntiforgeryPageApplicationModelProvider.cs (2)
29if (!pageApplicationModel.Filters.OfType<IAntiforgeryPolicy>().Any()) 32pageApplicationModel.Filters.Add(new AutoValidateAntiforgeryTokenAttribute());
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
29applicationModel.Filters.Select(f => new FilterDescriptor(f, FilterScope.Action)))
ApplicationModels\DefaultPageApplicationModelProvider.cs (4)
160pageModel.Filters.Add(filter); 167pageModel.Filters.Add(_pageHandlerPageFilter); 173pageModel.Filters.Add(_pageHandlerResultFilter); 176pageModel.Filters.Add(_handleOptionsRequestsFilter);
ApplicationModels\PageApplicationModel.cs (1)
64Filters = new List<IFilterMetadata>(other.Filters);
ApplicationModels\ResponseCacheFilterApplicationModelProvider.cs (1)
36context.PageApplicationModel.Filters.Add(new PageResponseCacheFilter(cacheProfile, _loggerFactory));
ApplicationModels\TempDataFilterPageApplicationModelProvider.cs (1)
40pageApplicationModel.Filters.Add(filter);
ApplicationModels\ViewDataAttributePageApplicationModelProvider.cs (1)
34context.PageApplicationModel.Filters.Add(filter);
DependencyInjection\PageConventionCollectionExtensions.cs (10)
30return conventions.AddFolderApplicationModelConvention("/", model => model.Filters.Add(factory(model))); 44conventions.AddFolderApplicationModelConvention("/", model => model.Filters.Add(filter)); 84model.Filters.Add(new AllowAnonymousFilter()); 120model.Filters.Add(new AllowAnonymousFilter()); 145model.Filters.Add(new AllowAnonymousFilter()); 181model.Filters.Add(new AllowAnonymousFilter()); 207model.Filters.Add(new AuthorizeFilter(policy)); 270model.Filters.Add(new AuthorizeFilter(policy)); 296model.Filters.Add(new AuthorizeFilter(policy)); 359model.Filters.Add(new AuthorizeFilter(policy));
Microsoft.AspNetCore.Mvc.RazorPages.Test (104)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (5)
33context.PageApplicationModel.Filters, 67context.PageApplicationModel.Filters, 85context.PageApplicationModel.Filters, 125context.PageApplicationModel.Filters, 167context.PageApplicationModel.Filters,
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
91Assert.Equal(pageApplicationModel.Filters, actual.FilterDescriptors.Select(f => f.Filter)); 179Assert.Same(pageApplicationModel.Filters[0], filterDescriptor.Filter);
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (6)
546pageModel.Filters, 1099pageModel.Filters, 1116pageModel.Filters, 1141pageModel.Filters, 1172pageModel.Filters, 1208pageModel.Filters,
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (3)
32context.PageApplicationModel.Filters, 66context.PageApplicationModel.Filters, 113context.PageApplicationModel.Filters,
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (4)
26Assert.Empty(context.PageApplicationModel.Filters); 73var filter = Assert.Single(context.PageApplicationModel.Filters); 89var filter = Assert.IsType<PageSaveTempDataPropertyFilterFactory>(Assert.Single(context.PageApplicationModel.Filters)); 111var filter = Assert.IsType<PageSaveTempDataPropertyFilterFactory>(Assert.Single(context.PageApplicationModel.Filters));
ApplicationModels\ViewDataAttributePageApplicationModelProviderTest.cs (2)
24Assert.Empty(context.PageApplicationModel.Filters); 39var filter = Assert.Single(context.PageApplicationModel.Filters);
DependencyInjection\PageConventionCollectionExtensionsTest.cs (79)
37model => Assert.Same(filter, Assert.Single(model.Filters)), 38model => Assert.Same(filter, Assert.Single(model.Filters)), 39model => Assert.Same(filter, Assert.Single(model.Filters))); 65Assert.Empty(model.Filters); 71Assert.Empty(model.Filters); 96model => Assert.Empty(model.Filters), 100Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 105Assert.IsType<AuthorizeFilter>(model.Filters[0]); 106Assert.IsType<AllowAnonymousFilter>(model.Filters[1]); 127model => Assert.Empty(model.Filters), 131Assert.Empty(model.Filters); 153model => Assert.Empty(model.Filters), 157Assert.IsType<AllowAnonymousFilter>(Assert.Single(model.Filters)); 185Assert.Empty(model.Filters); 192Assert.Empty(model.Filters); 230Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 235Assert.IsType<AuthorizeFilter>(model.Filters[0]); 236Assert.IsType<AllowAnonymousFilter>(model.Filters[1]); 241Assert.IsType<AuthorizeFilter>(model.Filters[0]); 242Assert.IsType<AllowAnonymousFilter>(model.Filters[1]); 270Assert.Empty(model.Filters); 277Assert.Empty(model.Filters); 285Assert.Empty(model.Filters); 316Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 321Assert.IsType<AuthorizeFilter>(model.Filters[0]); 322Assert.IsType<AllowAnonymousFilter>(model.Filters[1]); 327Assert.IsType<AuthorizeFilter>(model.Filters[0]); 328Assert.IsType<AllowAnonymousFilter>(model.Filters[1]); 357Assert.Empty(model.Filters); 363Assert.Empty(model.Filters); 389model => Assert.Empty(model.Filters), 390model => Assert.Empty(model.Filters), 394Assert.IsType<AllowAnonymousFilter>(Assert.Single(model.Filters)); 399Assert.IsType<AllowAnonymousFilter>(Assert.Single(model.Filters)); 401model => Assert.Empty(model.Filters)); 422model => Assert.Empty(model.Filters), 426Assert.Empty(model.Filters); 430model => Assert.Empty(model.Filters)); 451model => Assert.Empty(model.Filters), 455var authorizeFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 459model => Assert.Empty(model.Filters)); 479model => Assert.Empty(model.Filters), 483Assert.Empty(model.Filters); 506model => Assert.Empty(model.Filters), 510var authFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 533model => Assert.Empty(model.Filters), 537Assert.Empty(model.Filters); 560model => Assert.Empty(model.Filters), 564var authFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 588model => Assert.Empty(model.Filters), 592Assert.Empty(model.Filters); 596model => Assert.Empty(model.Filters)); 617model => Assert.Empty(model.Filters), 621var authorizeFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 625model => Assert.Empty(model.Filters)); 648model => Assert.Empty(model.Filters), 652Assert.Empty(model.Filters); 659Assert.Empty(model.Filters); 685model => Assert.Empty(model.Filters), 689var authorizeFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 696var authorizeFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 722model => Assert.Empty(model.Filters), 723model => Assert.Empty(model.Filters), 727Assert.Empty(model.Filters); 734Assert.Empty(model.Filters); 738model => Assert.Empty(model.Filters)); 761model => Assert.Empty(model.Filters), 762model => Assert.Empty(model.Filters), 766var authorizeFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 773var authorizeFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 777model => Assert.Empty(model.Filters)); 805Assert.Empty(model.Filters); 812Assert.Empty(model.Filters); 816model => Assert.Empty(model.Filters)); 839model => Assert.Empty(model.Filters), 840model => Assert.Empty(model.Filters), 844var authorizeFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 851var authorizeFilter = Assert.IsType<AuthorizeFilter>(Assert.Single(model.Filters)); 855model => Assert.Empty(model.Filters));
Filters\AutoValidateAntiforgeryPageApplicationModelProviderTest.cs (3)
34applicationModel.Filters, 59context.PageApplicationModel.Filters, 84context.PageApplicationModel.Filters,