32 lines
999 B
C#
32 lines
999 B
C#
// 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 System.Collections.Generic;
|
|
using System.Reflection;
|
|
|
|
namespace Microsoft.AspNetCore.Mvc.ApplicationModels
|
|
{
|
|
/// <summary>
|
|
/// A context object for <see cref="IApplicationModelProvider"/>.
|
|
/// </summary>
|
|
public class ApplicationModelProviderContext
|
|
{
|
|
public ApplicationModelProviderContext(IEnumerable<TypeInfo> controllerTypes)
|
|
{
|
|
if (controllerTypes == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(controllerTypes));
|
|
}
|
|
|
|
ControllerTypes = controllerTypes;
|
|
}
|
|
|
|
public IEnumerable<TypeInfo> ControllerTypes { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the <see cref="ApplicationModel"/>.
|
|
/// </summary>
|
|
public ApplicationModel Result { get; } = new ApplicationModel();
|
|
}
|
|
} |