-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIControlState.cs
More file actions
49 lines (44 loc) · 1.32 KB
/
IControlState.cs
File metadata and controls
49 lines (44 loc) · 1.32 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
using Inversion.Collections;
namespace Inversion.Process {
/// <summary>
/// Implements a common working control state.
/// </summary>
public interface IControlState: IDataDictionary<object> {
/// <summary>
/// Messages intended for user feedback.
/// </summary>
/// <remarks>
/// This is a poor mechanism for localisation,
/// and may need to be treated as tokens
/// by the front end to localise.
/// </remarks>
IDataCollection<string> Messages { get; }
/// <summary>
/// Error messages intended for user feedback.
/// </summary>
/// <remarks>
/// This is a poor mechanism for localisation,
/// and may need to be treated as tokens
/// by the front end to localise.
/// </remarks>
IDataCollection<ErrorMessage> Errors { get; }
/// <summary>
/// A dictionary of named timers.
/// </summary>
/// <remarks>
/// `ProcessTimer` is only intended
/// for informal timings, and it not intended
/// for proper metrics.
/// </remarks>
ProcessTimerDictionary Timers { get; }
/// <summary>
/// Flags for the context available to behaviours as shared state.
/// </summary>
IDataCollection<string> Flags { get; }
/// <summary>
/// The parameters of the contexts execution available
/// to behaviours as shared state.
/// </summary>
IDataDictionary<string> Params { get; }
}
}