13 instantiations of ApiConventionResult
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (12)
ApiResponseTypeProviderTest.cs (12)
23
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new[]
145
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new[]
235
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
291
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
332
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
385
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
427
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
478
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
524
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
571
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
621
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
653
actionDescriptor.Properties[typeof(ApiConventionResult)] = new
ApiConventionResult
(new IApiResponseMetadataProvider[]
Microsoft.AspNetCore.Mvc.Core (1)
ApiExplorer\ApiConventionResult.cs (1)
48
result = new
ApiConventionResult
(metadataProviders);
40 references to ApiConventionResult
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (3)
40
action.Properties.TryGetValue(typeof(
ApiConventionResult
), out var result))
43
var
apiConventionResult = (
ApiConventionResult
)result!;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (12)
ApiResponseTypeProviderTest.cs (12)
23
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new[]
145
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new[]
235
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
291
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
332
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
385
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
427
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
478
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
524
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
571
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
621
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
653
actionDescriptor.Properties[typeof(
ApiConventionResult
)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
Microsoft.AspNetCore.Mvc.Core (6)
ApiExplorer\ApiConventionResult.cs (2)
16
/// Initializes a new instance of <see cref="
ApiConventionResult
"/>.
33
[NotNullWhen(true)] out
ApiConventionResult
? result)
ApplicationModels\ApiConventionApplicationModelConvention.cs (4)
13
/// <item><description><see cref="
ApiConventionResult
"/> from applied <see cref="ApiConventionTypeAttribute"/> or <see cref="ApiConventionMethodAttribute"/>.</description></item>
70
if (
ApiConventionResult
.TryGetApiConvention(action.ActionMethod, apiConventionAttributes, out
var
result))
72
action.Properties[typeof(
ApiConventionResult
)] = result;
Microsoft.AspNetCore.Mvc.Core.Test (19)
ApiExplorer\ApiConventionResultTest.cs (16)
16
var result =
ApiConventionResult
.TryGetApiConvention(method, new[] { attribute }, out
var
conventionResult);
37
var result =
ApiConventionResult
.TryGetApiConvention(method, new[] { attribute }, out
var
conventionResult);
77
var result =
ApiConventionResult
.TryGetApiConvention(method, attributes, result: out
var
conventionResult);
102
var result =
ApiConventionResult
.TryGetApiConvention(method, attributes, out
var
conventionResult);
122
var result =
ApiConventionResult
.TryGetApiConvention(method, attributes, out
var
conventionResult);
145
var result =
ApiConventionResult
.TryGetApiConvention(method, conventions, out
var
conventionResult);
169
var result =
ApiConventionResult
.TryGetApiConvention(method, conventions, out
var
conventionResult);
193
var result =
ApiConventionResult
.TryGetApiConvention(method, conventions, out
var
conventionResult);
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (3)
27
Assert.DoesNotContain(typeof(
ApiConventionResult
), actionModel.Properties.Keys);
41
var value = actionModel.Properties[typeof(
ApiConventionResult
)];
57
var value = actionModel.Properties[typeof(
ApiConventionResult
)];