Пример #1
0
 protected virtual void RaiseOnComplete(OnCompletionArgs args)
 {
     OnCompletion handler = Complete;
     if (handler != null)
         handler (this, args);
 }
Пример #2
0
 private static void TaskComplete(object sender, OnCompletionArgs args)
 {
     _ProgressQueue.Publish(new TaskProgressMessage
         {
             CurrentTime = DateTime.Now,
             PercentComplete = 100,
             StartTime = DateTime.Now,
             Status = TaskStatus.Complete,
             TaskId = args.TaskId,
             MessageId = Guid.NewGuid(),
             TransmisionDateTime = DateTime.Now
         });
 }