1
namespace System
.Web
.Mvc
{
3 using System
.Collections
.Generic
;
4 using System
.Diagnostics
.CodeAnalysis
;
6 public class ActionExecutingContext
: ControllerContext
{
8 // parameterless constructor used for mocking
9 public ActionExecutingContext() {
12 [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors", Justification
= "The virtual property setters are only to support mocking frameworks, in which case this constructor shouldn't be called anyway.")]
13 public ActionExecutingContext(ControllerContext controllerContext
, ActionDescriptor actionDescriptor
, IDictionary
<string, object> actionParameters
)
14 : base(controllerContext
) {
15 if (actionDescriptor
== null) {
16 throw new ArgumentNullException("actionDescriptor");
18 if (actionParameters
== null) {
19 throw new ArgumentNullException("actionParameters");
22 ActionDescriptor
= actionDescriptor
;
23 ActionParameters
= actionParameters
;
26 public virtual ActionDescriptor ActionDescriptor
{
31 [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification
= "The property setter is only here to support mocking this type and should not be called at runtime.")]
32 public virtual IDictionary
<string, object> ActionParameters
{
37 public ActionResult Result
{