コード例 #1
0
ファイル: Program.cs プロジェクト: Quilt4/Quilt4Net
 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);
 }