// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using Microsoft.Framework.Internal; 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([NotNull] ActionContext actionContext, [NotNull] string viewName, bool isPartial) { 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; } } }