forked from PeterWaher/IoTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStatusEventArgs.cs
More file actions
50 lines (45 loc) · 1.11 KB
/
StatusEventArgs.cs
File metadata and controls
50 lines (45 loc) · 1.11 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
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Waher.Script
{
/// <summary>
/// Delegate for status events.
/// </summary>
/// <param name="Sender"></param>
/// <param name="e"></param>
public delegate void StatusEventHandler(object Sender, StatusEventArgs e);
/// <summary>
/// Event arguments for status events.
/// </summary>
public class StatusEventArgs : EventArgs
{
private readonly Expression expression;
private readonly string status;
/// <summary>
/// Event arguments for status events.
/// </summary>
/// <param name="Expression">Expression being evaluated.</param>
/// <param name="Status">Current status of execution.</param>
public StatusEventArgs(Expression Expression, string Status)
{
this.expression = Expression;
this.status = Status;
}
/// <summary>
/// Expression being evaluated.
/// </summary>
public Expression Expression
{
get { return this.expression; }
}
/// <summary>
/// Current status of execution.
/// </summary>
public object Status
{
get { return this.status; }
}
}
}