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