示例#1
0
文件: GusTaskBase.cs 项目: defize/Gus
 protected void OnExecutionEvent(ExecutionEventType type, string message)
 {
     var e = new GusTaskExecutionEventArgs(type, message, 0);
     OnExecutionEvent(e);
 }
示例#2
0
 public List <EventSubscriptionModel> GetSubscriptions(string eventName, ExecutionEventType eventType)
 {
     return(_events.Where(f => f.EventName == eventName && f.EventType == eventType).ToList());
 }
示例#3
0
 public GusTaskExecutionEventArgs(ExecutionEventType type, string message, uint executionStep)
 {
     Type = type;
     Message = message;
     ExecutionStep = executionStep;
 }
示例#4
0
 public void RaiseExecutionEvent(ExecutionEventType type, string message)
 {
     var e = new GusTaskExecutionEventArgs(type, message, 0);
     RaiseExecutionEvent(e);
 }