32 instantiations of ApiConventionTypeAttribute
ApiExplorerWebSite (1)
Controllers\ApiExplorerResponseTypeWithApiConventionController.cs (1)
10[ApiConventionType(typeof(DefaultApiConventions))]
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
ApiResponseTypeProviderTest.cs (3)
66[ApiConventionType(typeof(DefaultApiConventions))] 189[ApiConventionType(typeof(DefaultApiConventions))] 222[ApiConventionType(typeof(DefaultApiConventions))]
Microsoft.AspNetCore.Mvc.Core.Test (13)
ApiConventionTypeAttributeTest.cs (3)
23() => new ApiConventionTypeAttribute(typeof(ConventionWithProducesAttribute)), 44() => new ApiConventionTypeAttribute(typeof(ConventionWithRouteAttribute)), 65() => new ApiConventionTypeAttribute(typeof(ConventionWitUnsupportedAttributes)),
ApiExplorer\ApiConventionResultTest.cs (9)
13var attribute = new ApiConventionTypeAttribute(typeof(DefaultApiConventions)); 34var attribute = new ApiConventionTypeAttribute(typeof(GetApiConvention_ReturnsResultFromConventionType)); 72new ApiConventionTypeAttribute(typeof(GetApiConvention_ReturnsResultFromConventionType)), 73new ApiConventionTypeAttribute(typeof(DefaultApiConventions)), 99var attributes = new[] { new ApiConventionTypeAttribute(typeof(DefaultApiConventions)) }; 119var attributes = new[] { new ApiConventionTypeAttribute(typeof(DefaultApiConventions)) }; 141new ApiConventionTypeAttribute(typeof(DefaultApiConventions)), 165new ApiConventionTypeAttribute(typeof(DefaultApiConventions)), 189new ApiConventionTypeAttribute(typeof(DefaultApiConventions)),
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (1)
167controllerAttributes = controllerAttributes ?? new[] { new ApiConventionTypeAttribute(typeof(DefaultApiConventions)) };
Mvc.Api.Analyzers.Test (15)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Input.cs (1)
1[assembly: Microsoft.AspNetCore.Mvc.ApiConventionType(typeof(Microsoft.AspNetCore.Mvc.DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Output.cs (1)
3[assembly: Microsoft.AspNetCore.Mvc.ApiConventionType(typeof(Microsoft.AspNetCore.Mvc.DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsSuccessStatusCode.Input.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsSuccessStatusCode.Output.cs (1)
7[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionAddsMissingStatusCodes.Input.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionAddsMissingStatusCodes.Output.cs (1)
7[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutAnyAttributes.cs (1)
7[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForControllerWithCustomConvention.cs (1)
9[assembly: ApiConventionType(typeof(DiagnosticsAreReturned_ForControllerWithCustomConvention))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithConvention_DoesNotReturnDocumentedStatusCode.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCode.cs (1)
7[assembly: ApiConventionType(typeof(DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCodeConvention))]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiController_WithAllDocumentedStatusCodes.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForReturnStatementsInLambdas.cs (1)
7[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\SymbolApiResponseMetadataProviderTest\GetResponseMetadataTests.cs (2)
97[ApiConventionType(typeof(DefaultApiConventions))] 103[ApiConventionType(typeof(DefaultApiConventions))]
18 references to ApiConventionTypeAttribute
Microsoft.AspNetCore.Mvc.Core (11)
ApiConventionMethodAttribute.cs (2)
16/// to an action. <see cref="ApiConventionTypeAttribute"/> for details about applying conventions at 40ApiConventionTypeAttribute.EnsureValid(conventionType);
ApiConventionTypeAttribute.cs (1)
31/// Initializes an <see cref="ApiConventionTypeAttribute"/> instance using <paramref name="conventionType"/>.
ApiExplorer\ApiConventionNameMatchAttribute.cs (1)
9/// <seealso cref="ApiConventionTypeAttribute"/>.
ApiExplorer\ApiConventionResult.cs (3)
32ApiConventionTypeAttribute[] apiConventionAttributes, 56private static MethodInfo? GetConventionMethod(MethodInfo method, ApiConventionTypeAttribute[] apiConventionAttributes) 58foreach (var attribute in apiConventionAttributes)
ApiExplorer\ApiConventionTypeMatchAttribute.cs (1)
9/// <seealso cref="ApiConventionTypeAttribute"/>.
ApplicationModels\ApiConventionApplicationModelConvention.cs (3)
13/// <item><description><see cref="ApiConventionResult"/> from applied <see cref="ApiConventionTypeAttribute"/> or <see cref="ApiConventionMethodAttribute"/>.</description></item> 63var apiConventionAttributes = controller.Attributes.OfType<ApiConventionTypeAttribute>().ToArray(); 67apiConventionAttributes = controllerAssembly.GetCustomAttributes<ApiConventionTypeAttribute>().ToArray();
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApiExplorer\ApiConventionResultTest.cs (2)
13var attribute = new ApiConventionTypeAttribute(typeof(DefaultApiConventions)); 34var attribute = new ApiConventionTypeAttribute(typeof(GetApiConvention_ReturnsResultFromConventionType));
Mvc.Analyzers.Test (5)
CodeAnalysisExtensionsTest.cs (5)
279var attribute = compilation.GetTypeByMetadataName(typeof(ApiConventionTypeAttribute).FullName); 306var attribute = compilation.GetTypeByMetadataName(typeof(ApiConventionTypeAttribute).FullName); 349var attribute = compilation.GetTypeByMetadataName(typeof(ApiConventionTypeAttribute).FullName); 397var attribute = compilation.GetTypeByMetadataName(typeof(ApiConventionTypeAttribute).FullName); 435var attribute = compilation.GetTypeByMetadataName(typeof(ApiConventionTypeAttribute).FullName);