// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.AspNetCore.Mvc.ApplicationParts; using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Mvc.Internal { /// /// Allows fine grained configuration of MVC services. /// public class MvcBuilder : IMvcBuilder { /// /// Initializes a new instance. /// /// The to add services to. /// The of the application. public MvcBuilder(IServiceCollection services, ApplicationPartManager manager) { if (services == null) { throw new ArgumentNullException(nameof(services)); } if (manager == null) { throw new ArgumentNullException(nameof(manager)); } Services = services; PartManager = manager; } /// public IServiceCollection Services { get; } /// public ApplicationPartManager PartManager { get; } } }