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)
13
var attribute = new
ApiConventionTypeAttribute
(typeof(DefaultApiConventions));
34
var attribute = new
ApiConventionTypeAttribute
(typeof(GetApiConvention_ReturnsResultFromConventionType));
72
new
ApiConventionTypeAttribute
(typeof(GetApiConvention_ReturnsResultFromConventionType)),
73
new
ApiConventionTypeAttribute
(typeof(DefaultApiConventions)),
99
var attributes = new[] { new
ApiConventionTypeAttribute
(typeof(DefaultApiConventions)) };
119
var attributes = new[] { new
ApiConventionTypeAttribute
(typeof(DefaultApiConventions)) };
141
new
ApiConventionTypeAttribute
(typeof(DefaultApiConventions)),
165
new
ApiConventionTypeAttribute
(typeof(DefaultApiConventions)),
189
new
ApiConventionTypeAttribute
(typeof(DefaultApiConventions)),
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (1)
167
controllerAttributes = 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
40
ApiConventionTypeAttribute
.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)
32
ApiConventionTypeAttribute
[] apiConventionAttributes,
56
private static MethodInfo? GetConventionMethod(MethodInfo method,
ApiConventionTypeAttribute
[] apiConventionAttributes)
58
foreach (
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>
63
var apiConventionAttributes = controller.Attributes.OfType<
ApiConventionTypeAttribute
>().ToArray();
67
apiConventionAttributes = controllerAssembly.GetCustomAttributes<
ApiConventionTypeAttribute
>().ToArray();
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApiExplorer\ApiConventionResultTest.cs (2)
13
var
attribute = new ApiConventionTypeAttribute(typeof(DefaultApiConventions));
34
var
attribute = new ApiConventionTypeAttribute(typeof(GetApiConvention_ReturnsResultFromConventionType));
Mvc.Analyzers.Test (5)
CodeAnalysisExtensionsTest.cs (5)
279
var attribute = compilation.GetTypeByMetadataName(typeof(
ApiConventionTypeAttribute
).FullName);
306
var attribute = compilation.GetTypeByMetadataName(typeof(
ApiConventionTypeAttribute
).FullName);
349
var attribute = compilation.GetTypeByMetadataName(typeof(
ApiConventionTypeAttribute
).FullName);
397
var attribute = compilation.GetTypeByMetadataName(typeof(
ApiConventionTypeAttribute
).FullName);
435
var attribute = compilation.GetTypeByMetadataName(typeof(
ApiConventionTypeAttribute
).FullName);