-
Notifications
You must be signed in to change notification settings - Fork 0
/
IErrorUnitCentral.cs
62 lines (56 loc) · 1.68 KB
/
IErrorUnitCentral.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ErrorUnit.Interfaces
{
/// <summary>
/// IErrorUnitCentral Interface
/// </summary>
public interface IErrorUnitCentral : IInjector, ILogger, IJsonSerializer
{
/// <summary>
/// Sets the injector.
/// </summary>
/// <value>
/// The injector.
/// </value>
IInjector Injector { set; }
/// <summary>
/// Sets the json serializer.
/// </summary>
/// <value>
/// The json serializer.
/// </value>
IJsonSerializer JsonSerializer { set; }
/// <summary>
/// Sets the logger.
/// </summary>
/// <value>
/// The logger.
/// </value>
ILogger Logger { set; }
/// <summary>
/// Adds to the Current stack.
/// </summary>
/// <param name="errorPrecondition">The error precondition.</param>
/// <returns>guid id on the stack</returns>
Guid CurrentStack_Add(aErrorPrecondition errorPrecondition);
/// <summary>
/// Cleans up Current stack; removing methods that have ended.
/// </summary>
/// <param name="end">The end.</param>
void CleanUp(DateTime end);
/// <summary>
/// Ends a web call on Current Stack.
/// </summary>
void CurrentStack_EndWebCall();
/// <summary>
/// Throws the error stack.
/// </summary>
/// <param name="ex">The ex.</param>
/// <returns>JSON serialized error stack</returns>
string ThrowErrorStack(Exception ex);
}
}