Esempio n. 1
0
 protected virtual void OnIssueRegistrationCompletedEvent(IssueRegistrationCompletedEventArgs e)
 {
     IssueRegistrationCompletedEvent?.Invoke(this, e);
 }
Esempio n. 2
0
 private static void Issue_IssueRegistrationCompletedEvent(object sender, IssueRegistrationCompletedEventArgs e)
 {
     if (e.Result.IsSuccess)
     {
         var message = $"Issue {e.Result.ErrorMessage ?? "registered in"} {e.Result.Elapsed.TotalMilliseconds.ToString("0")}ms.";
         _rootCommand.OutputEvent(message);
     }
     else
     {
         _rootCommand.OutputError(e.Result.Exception);
     }
 }