Ejemplo n.º 1
0
 protected virtual void RaiseOnErrorOccured(OnErrorArgs args)
 {
     OnError handler = ErrorOccured;
     if (handler != null)
         handler (this, args);
 }
Ejemplo n.º 2
0
 private static void TaskErrorOccured(object sender, OnErrorArgs args)
 {
     _LogQueue.Publish(new TaskLogMessage
         {
             MessageId = Guid.NewGuid(),
             TransmisionDateTime = DateTime.Now,
             TaskId = args.TaskId,
             LogLevel = LogLevel.Error,
             LogMessage = args.Error
         });
 }