示例#1
0
 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);
     }
 }
示例#2
0
 protected virtual void OnSessionEndCompletedEvent(SessionEndCompletedEventArgs e)
 {
     SessionEndCompletedEvent?.Invoke(this, e);
 }