MVC3 integrated, with some changes to make it compile on Mono and with Razor2
[mono-project.git] / mcs / class / System.Web.Mvc3 / Mvc / ActionExecutingContext.cs
blob7b507b60842357ca3148bffd4f22749e30b5b9f4
1 namespace System.Web.Mvc {
2 using System;
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 {
27 get;
28 set;
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 {
33 get;
34 set;
37 public ActionResult Result {
38 get;
39 set;