-
Notifications
You must be signed in to change notification settings - Fork 0
/
aErrorPrecondition.cs
67 lines (63 loc) · 2.07 KB
/
aErrorPrecondition.cs
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System;
using System.Collections.Generic;
using System.Web;
namespace ErrorUnit.Interfaces
{
/// <summary>
/// Abstract class for creating an IErrorPrecondition, please inherit from this.
/// </summary>
/// <seealso cref="ErrorUnit.Interfaces.IErrorPrecondition" />
[Serializable]
public abstract class aErrorPrecondition : IErrorPrecondition
{
/// <summary>
/// Gets the error unit web call identifier.
/// </summary>
/// <value>
/// The error unit web call identifier.
/// </value>
public Guid? ErrorUnitWebCallId { get { return (Guid?)HttpContext.Current?.Items["ErrorUnitWebCallId"]; } set { } }
/// <summary>
/// Gets the start time of the method.
/// </summary>
/// <value>
/// The start.
/// </value>
public DateTime Start { get; set; } = DateTime.Now;
/// <summary>
/// Gets the arguments.
/// </summary>
/// <value>
/// The arguments.
/// </value>
public abstract TypeNameAndObjectValue[] Arguments { get; set; }
/// <summary>
/// Gets the full type name of the class the method that failed is in.
/// </summary>
/// <value>
/// The full type name of the class.
/// </value>
public abstract string InvocationClassName { get; set; }
/// <summary>
/// Gets the time the method completes successfully.
/// </summary>
/// <value>
/// The time the method completes successfully.
/// </value>
public DateTime? End { get; set; }
/// <summary>
/// Gets the invocation class.
/// </summary>
/// <value>
/// The invocation class.
/// </value>
public abstract TypeNameAndObjectValue InvocationClassValue { get; set; }
/// <summary>
/// Gets the name of the method.
/// </summary>
/// <value>
/// The name of the method.
/// </value>
public abstract string MethodName { get; set; }
}
}