[corlib] Remove unused files
[mono.git] / mcs / class / System.Web.Mvc3 / Mvc / ResultExecutingContext.cs
1 namespace System.Web.Mvc {
2     using System;
3     using System.Diagnostics.CodeAnalysis;
4
5     public class ResultExecutingContext : ControllerContext {
6
7         // parameterless constructor used for mocking
8         public ResultExecutingContext() {
9         }
10
11         [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.")]
12         public ResultExecutingContext(ControllerContext controllerContext, ActionResult result)
13             : base(controllerContext) {
14             if (result == null) {
15                 throw new ArgumentNullException("result");
16             }
17
18             Result = result;
19         }
20
21         public bool Cancel {
22             get;
23             set;
24         }
25
26         public virtual ActionResult Result {
27             get;
28             set;
29         }
30
31     }
32 }