8 instantiations of AllowAnonymousFilter
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\AuthorizationApplicationModelProvider.cs (2)
51
controllerModel.Filters.Add(new
AllowAnonymousFilter
());
64
actionModel.Filters.Add(new
AllowAnonymousFilter
());
Microsoft.AspNetCore.Mvc.Core.Test (1)
Authorization\AuthorizeFilterTest.cs (1)
178
authorizationContext.Filters.Add(new
AllowAnonymousFilter
());
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\AuthorizationPageApplicationModelProvider.cs (1)
46
pageModel.Filters.Add(new
AllowAnonymousFilter
());
DependencyInjection\PageConventionCollectionExtensions.cs (4)
84
model.Filters.Add(new
AllowAnonymousFilter
());
120
model.Filters.Add(new
AllowAnonymousFilter
());
145
model.Filters.Add(new
AllowAnonymousFilter
());
181
model.Filters.Add(new
AllowAnonymousFilter
());
11 references to AllowAnonymousFilter
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (2)
116
Assert.Single(controller.Filters, f => f is
AllowAnonymousFilter
);
118
Assert.Single(action.Filters, f => f is
AllowAnonymousFilter
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (1)
170
f => Assert.IsType<
AllowAnonymousFilter
>(f));
DependencyInjection\PageConventionCollectionExtensionsTest.cs (8)
106
Assert.IsType<
AllowAnonymousFilter
>(model.Filters[1]);
157
Assert.IsType<
AllowAnonymousFilter
>(Assert.Single(model.Filters));
236
Assert.IsType<
AllowAnonymousFilter
>(model.Filters[1]);
242
Assert.IsType<
AllowAnonymousFilter
>(model.Filters[1]);
322
Assert.IsType<
AllowAnonymousFilter
>(model.Filters[1]);
328
Assert.IsType<
AllowAnonymousFilter
>(model.Filters[1]);
394
Assert.IsType<
AllowAnonymousFilter
>(Assert.Single(model.Filters));
399
Assert.IsType<
AllowAnonymousFilter
>(Assert.Single(model.Filters));