protected virtual void OnIssueRegistrationCompletedEvent(IssueRegistrationCompletedEventArgs e) { IssueRegistrationCompletedEvent?.Invoke(this, e); }
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); } }