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 ResultExecutedContext : ControllerContext {
\r
19 // parameterless constructor used for mocking
\r
20 public ResultExecutedContext() {
\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 ResultExecutedContext(ControllerContext controllerContext, ActionResult result, bool canceled, Exception exception)
\r
26 : base(controllerContext) {
\r
27 if (result == null) {
\r
28 throw new ArgumentNullException("result");
\r
32 Canceled = canceled;
\r
33 Exception = exception;
\r
36 public virtual bool Canceled {
\r
41 public virtual Exception Exception {
\r
46 public bool ExceptionHandled {
\r
51 public virtual ActionResult Result {
\r