// 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.Collections.Generic; using Microsoft.AspNet.Mvc.ModelBinding; using Microsoft.AspNet.Mvc.ModelBinding.Validation; namespace Microsoft.AspNet.Mvc { /// /// A context for resource filters. Allows modification of services and values used for /// model binding. /// public class ResourceExecutingContext : FilterContext { /// /// Creates a new . /// /// The . /// The list of instances. public ResourceExecutingContext(ActionContext actionContext, IList filters) : base(actionContext, filters) { } /// /// Gets or sets the list of instances used by model binding. /// public virtual IList InputFormatters { get; set; } /// /// Gets or sets the list of instances used to format the response. /// public virtual IList OutputFormatters { get; set; } /// /// Gets or sets the list of instances used by model binding. /// public virtual IList ModelBinders { get; set; } /// /// Gets or sets the result of the action to be executed. /// /// /// Setting to a non-null value inside a resource filter will /// short-circuit execution of additional resource filtes and the action itself. /// public virtual IActionResult Result { get; set; } /// /// Gets or sets the list of instances used by model binding. /// public IList ValueProviderFactories { get; set; } /// /// Gets or sets the list of instances used by model binding. /// public IList ValidatorProviders { get; set; } } }