private static void Session_SessionEndCompletedEvent(object sender, SessionEndCompletedEventArgs e) { if (e.Result.IsSuccess) { var message = $"Session {e.Result.ErrorMessage ?? "ended in"} {e.Result.Elapsed.TotalMilliseconds.ToString("0")}ms."; _rootCommand.OutputEvent(message); } else { _rootCommand.OutputError(e.Result.Exception); } }
protected virtual void OnSessionEndCompletedEvent(SessionEndCompletedEventArgs e) { SessionEndCompletedEvent?.Invoke(this, e); }