Exemplo n.º 1
0
 protected virtual void RaiseOnComplete(OnCompletionArgs args)
 {
     OnCompletion handler = Complete;
     if (handler != null)
         handler (this, args);
 }
Exemplo n.º 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
         });
 }