13 instantiations of ApiConventionResult
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (12)
ApiResponseTypeProviderTest.cs (12)
23actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 145actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 235actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 291actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 332actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 385actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 427actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 478actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 524actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 571actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 621actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 653actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[]
Microsoft.AspNetCore.Mvc.Core (1)
ApiExplorer\ApiConventionResult.cs (1)
48result = new ApiConventionResult(metadataProviders);
40 references to ApiConventionResult
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (3)
40action.Properties.TryGetValue(typeof(ApiConventionResult), out var result)) 43var apiConventionResult = (ApiConventionResult)result!;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (12)
ApiResponseTypeProviderTest.cs (12)
23actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 145actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 235actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 291actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 332actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 385actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 427actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 478actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 524actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 571actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 621actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 653actionDescriptor.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> 70if (ApiConventionResult.TryGetApiConvention(action.ActionMethod, apiConventionAttributes, out var result)) 72action.Properties[typeof(ApiConventionResult)] = result;
Microsoft.AspNetCore.Mvc.Core.Test (19)
ApiExplorer\ApiConventionResultTest.cs (16)
16var result = ApiConventionResult.TryGetApiConvention(method, new[] { attribute }, out var conventionResult); 37var result = ApiConventionResult.TryGetApiConvention(method, new[] { attribute }, out var conventionResult); 77var result = ApiConventionResult.TryGetApiConvention(method, attributes, result: out var conventionResult); 102var result = ApiConventionResult.TryGetApiConvention(method, attributes, out var conventionResult); 122var result = ApiConventionResult.TryGetApiConvention(method, attributes, out var conventionResult); 145var result = ApiConventionResult.TryGetApiConvention(method, conventions, out var conventionResult); 169var result = ApiConventionResult.TryGetApiConvention(method, conventions, out var conventionResult); 193var result = ApiConventionResult.TryGetApiConvention(method, conventions, out var conventionResult);
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (3)
27Assert.DoesNotContain(typeof(ApiConventionResult), actionModel.Properties.Keys); 41var value = actionModel.Properties[typeof(ApiConventionResult)]; 57var value = actionModel.Properties[typeof(ApiConventionResult)];