1 /* ****************************************************************************
\r
3 * Copyright (c) Microsoft Corporation. All rights reserved.
\r
5 * This software is subject to the Microsoft Public License (Ms-PL).
\r
6 * A copy of the license can be found in the license.htm file included
\r
7 * in this distribution.
\r
9 * You must not remove this notice, or any other, from this software.
\r
11 * ***************************************************************************/
\r
13 namespace System.Web.Mvc {
\r
15 using System.Diagnostics.CodeAnalysis;
\r
17 public class ResultExecutingContext : ControllerContext {
\r
19 // parameterless constructor used for mocking
\r
20 public ResultExecutingContext() {
\r
23 [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors",
\r
24 Justification = "The virtual property setters are only to support mocking frameworks, in which case this constructor shouldn't be called anyway.")]
\r
25 public ResultExecutingContext(ControllerContext controllerContext, ActionResult result)
\r
26 : base(controllerContext) {
\r
27 if (result == null) {
\r
28 throw new ArgumentNullException("result");
\r
34 public bool Cancel {
\r
39 public virtual ActionResult Result {
\r