Exemplo n.º 1
0
 /// <summary>
 /// Executes the task.
 /// </summary>
 public bool Execute()
 {
     try
     {
         Action();
         return(true);
     }
     catch (Exception e)
     {
         Logger.Instance.Error(Owner, "Exception in task {0}: {1}", Name, e);
         return(false);
     }
     finally
     {
         _completion?.End();
     }
 }
 public void Dispose()
 {
     _tracker.End();
 }