| File: ApiParameterContext.cs | Web Access |
| Project: src\aspnetcore\src\Mvc\Mvc.ApiExplorer\src\Microsoft.AspNetCore.Mvc.ApiExplorer.csproj (Microsoft.AspNetCore.Mvc.ApiExplorer) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Mvc.Controllers; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Routing.Template; namespace Microsoft.AspNetCore.Mvc.ApiExplorer; internal sealed class ApiParameterContext { public ApiParameterContext( IModelMetadataProvider metadataProvider, ControllerActionDescriptor actionDescriptor, IReadOnlyList<TemplatePart> routeParameters) { MetadataProvider = metadataProvider; ActionDescriptor = actionDescriptor; RouteParameters = routeParameters; Results = new List<ApiParameterDescription>(); } public ControllerActionDescriptor ActionDescriptor { get; } public IModelMetadataProvider MetadataProvider { get; } public IList<ApiParameterDescription> Results { get; } public IReadOnlyList<TemplatePart> RouteParameters { get; } }