1 type derived from ControllerAttribute
Microsoft.AspNetCore.Mvc.Core (1)
ApiControllerAttribute.cs (1)
20public class ApiControllerAttribute : ControllerAttribute, IApiBehaviorMetadata
20 instantiations of ControllerAttribute
ControllersFromServicesClassLibrary (1)
ResourcesController.cs (1)
8[Controller]
CustomPolicyProvider (1)
Controllers\HomeController.cs (1)
9[Controller]
Microsoft.AspNetCore.Mvc.Abstractions.Test (7)
ModelBinding\BindingInfoTest.cs (7)
87var attributes = new object[] { new ControllerAttribute(), new BindNeverAttribute(), }; 150new ControllerAttribute(), 177var attributes = new object[] { new ControllerAttribute(), new BindNeverAttribute(), }; 201new ControllerAttribute(), 227new ControllerAttribute(), 253new ControllerAttribute(), 275new ControllerAttribute(),
Microsoft.AspNetCore.Mvc.Core (1)
ControllerBase.cs (1)
24[Controller]
Microsoft.AspNetCore.Mvc.Core.Test (7)
Controllers\ControllerFeatureProviderTest.cs (4)
421[Controller] 459[Controller] 465[Controller] 492[Controller]
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (3)
142var context = CreateContext(stream, metadata: new EndpointMetadataCollection(new ControllerAttribute())); 157var context = CreateContext(stream, metadata: new EndpointMetadataCollection(new ControllerAttribute())); 203metadata ??= new EndpointMetadataCollection(new ApiControllerAttribute(), new ControllerAttribute());
Mvc.Api.Analyzers.Test (3)
TestFiles\MvcFactsTest\IsControllerTests.cs (3)
34[Controller] 37[Controller] 43[Controller]
5 references to ControllerAttribute
Microsoft.AspNetCore.Mvc.Core (4)
Controllers\ControllerFeatureProvider.cs (1)
69!typeInfo.IsDefined(typeof(ControllerAttribute)))
Infrastructure\DefaultApiProblemDetailsWriter.cs (3)
37var controllerAttribute = context.AdditionalMetadata?.GetMetadata<ControllerAttribute>() ?? 38context.HttpContext.GetEndpoint()?.Metadata.GetMetadata<ControllerAttribute>();
Mvc.Api.Analyzers.Test (1)
MvcFactsTest.cs (1)
11private static readonly string ControllerAttribute = typeof(ControllerAttribute).FullName;