13 instantiations of ApiConventionMethodAttribute
ApiExplorerWebSite (1)
Controllers\ApiExplorerResponseTypeWithApiConventionController.cs (1)
42[ApiConventionMethod(typeof(CustomConventions), nameof(CustomConventions.CustomConventionMethod))]
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
ApiResponseTypeProviderTest.cs (1)
278[ApiConventionMethod(typeof(DefaultApiConventions), nameof(DefaultApiConventions.Get))]
Microsoft.AspNetCore.Mvc.Core.Test (7)
ApiConventionMethodAttributeTest.cs (6)
22() => new ApiConventionMethodAttribute(typeof(ConventionWithProducesAttribute), nameof(ConventionWithProducesAttribute.Get)), 44() => new ApiConventionMethodAttribute(typeof(object), nameof(object.ToString)), 81new ApiConventionMethodAttribute(typeof(ConventionWithNullableContextAttribute), nameof(ConventionWithNullableContextAttribute.Get)); 96() => new ApiConventionMethodAttribute(typeof(TestConventions), "DoesNotExist"), 113() => new ApiConventionMethodAttribute(typeof(TestConventions), "NotPublic"), 130() => new ApiConventionMethodAttribute(typeof(TestConventions), nameof(TestConventions.Method)),
ApiExplorer\ApiConventionResultTest.cs (1)
214[ApiConventionMethod(typeof(DefaultApiConventions), nameof(DefaultApiConventions.Post))]
Mvc.Api.Analyzers.Test (4)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionMethodAddsMissingStatusCodes.Input.cs (1)
7[ApiConventionMethod(typeof(DefaultApiConventions), nameof(DefaultApiConventions.Find))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs (1)
13[ApiConventionMethod(typeof(DefaultApiConventions), nameof(DefaultApiConventions.Post))]
TestFiles\SymbolApiResponseMetadataProviderTest\GetResponseMetadataTests.cs (2)
47[ApiConventionMethod(typeof(DefaultApiConventions), nameof(DefaultApiConventions.Find))] 51[ApiConventionMethod(typeof(DefaultApiConventions), nameof(DefaultApiConventions.Find))]
5 references to ApiConventionMethodAttribute
Microsoft.AspNetCore.Mvc.Core (5)
ApiConventionMethodAttribute.cs (2)
15/// <see cref="ApiConventionMethodAttribute"/> can be used to specify an exact convention method that applies 24/// Initializes an <see cref="ApiConventionMethodAttribute"/> instance using <paramref name="conventionType"/> and
ApiExplorer\ApiConventionResult.cs (2)
35var apiConventionMethodAttribute = method.GetCustomAttribute<ApiConventionMethodAttribute>(inherit: true);
ApplicationModels\ApiConventionApplicationModelConvention.cs (1)
13/// <item><description><see cref="ApiConventionResult"/> from applied <see cref="ApiConventionTypeAttribute"/> or <see cref="ApiConventionMethodAttribute"/>.</description></item>