// 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;
namespace Microsoft.AspNet.Mvc.Razor
{
///
/// A context for containing information for .
///
public class ViewLocationExpanderContext
{
///
/// Initializes a new instance of .
///
/// The for the current executing action.
/// The view name.
/// Determines if the view being discovered is a partial.
public ViewLocationExpanderContext(
ActionContext actionContext,
string viewName,
bool isPartial)
{
if (actionContext == null)
{
throw new ArgumentNullException(nameof(actionContext));
}
if (viewName == null)
{
throw new ArgumentNullException(nameof(viewName));
}
ActionContext = actionContext;
ViewName = viewName;
IsPartial = isPartial;
}
///
/// Gets the for the current executing action.
///
public ActionContext ActionContext { get; }
///
/// Gets the view name.
///
public string ViewName { get; }
///
/// Gets a value that determines if a partial view is being discovered.
///
public bool IsPartial { get; }
///
/// Gets or sets the that is populated with values as part of
/// .
///
public IDictionary Values { get; set; }
}
}