blob: 45bb2042358dd7d87624836312477f3a033650fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System.Diagnostics.CodeAnalysis;
namespace System.Web.Mvc
{
public class ResultExecutingContext : ControllerContext
{
// parameterless constructor used for mocking
public ResultExecutingContext()
{
}
[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.")]
public ResultExecutingContext(ControllerContext controllerContext, ActionResult result)
: base(controllerContext)
{
if (result == null)
{
throw new ArgumentNullException("result");
}
Result = result;
}
public bool Cancel { get; set; }
public virtual ActionResult Result { get; set; }
}
}
|