-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathIObservableLayer.cs
More file actions
81 lines (70 loc) · 2.38 KB
/
IObservableLayer.cs
File metadata and controls
81 lines (70 loc) · 2.38 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
namespace Waher.Events
{
/// <summary>
/// Interface for classes that can be observed.
/// </summary>
public interface IObservableLayer
{
/// <summary>
/// If events raised from the communication layer are decoupled, i.e. executed
/// in parallel with the source that raised them.
/// </summary>
bool DecoupledEvents { get; }
/// <summary>
/// Called to inform the viewer of something.
/// </summary>
/// <param name="Comment">Comment.</param>
void Information(string Comment);
/// <summary>
/// Called to inform the viewer of something.
/// </summary>
/// <param name="Timestamp">Timestamp of event.</param>
/// <param name="Comment">Comment.</param>
void Information(DateTime Timestamp, string Comment);
/// <summary>
/// Called to inform the viewer of a warning state.
/// </summary>
/// <param name="Warning">Warning.</param>
void Warning(string Warning);
/// <summary>
/// Called to inform the viewer of a warning state.
/// </summary>
/// <param name="Timestamp">Timestamp of event.</param>
/// <param name="Warning">Warning.</param>
void Warning(DateTime Timestamp, string Warning);
/// <summary>
/// Called to inform the viewer of an error state.
/// </summary>
/// <param name="Error">Error.</param>
void Error(string Error);
/// <summary>
/// Called to inform the viewer of an error state.
/// </summary>
/// <param name="Timestamp">Timestamp of event.</param>
/// <param name="Error">Error.</param>
void Error(DateTime Timestamp, string Error);
/// <summary>
/// Called to inform the viewer of an exception state.
/// </summary>
/// <param name="Exception">Exception.</param>
void Exception(string Exception);
/// <summary>
/// Called to inform the viewer of an exception state.
/// </summary>
/// <param name="Timestamp">Timestamp of event.</param>
/// <param name="Exception">Exception.</param>
void Exception(DateTime Timestamp, string Exception);
/// <summary>
/// Called to inform the viewer of an exception state.
/// </summary>
/// <param name="Exception">Exception.</param>
void Exception(Exception Exception);
/// <summary>
/// Called to inform the viewer of an exception state.
/// </summary>
/// <param name="Timestamp">Timestamp of event.</param>
/// <param name="Exception">Exception.</param>
void Exception(DateTime Timestamp, Exception Exception);
}
}