コード例 #1
0
 private void OnJobFailure(
     object sender,
     JobFailureEventArgs args
     )
 {
     ShowErrorDialog(args.Exception);
 }
コード例 #2
0
 private void RegisterJobFailure(
     object sender,
     JobFailureEventArgs args
     )
 {
     HasRegisteredJobFailure = true;
 }
コード例 #3
0
 private void RegisterExeption(
     object sender,
     JobFailureEventArgs args
     )
 {
     InnerException = args.Exception;
 }
コード例 #4
0
ファイル: MainWindow.cs プロジェクト: YburnContributors/Yburn
 private void OnJobFailure(
     Task task
     )
 {
     if (task.Exception != null)
     {
         JobFailureEventArgs args = new JobFailureEventArgs();
         args.Exception = task.Exception.InnerException;
         OnJobFailure(this, args);
     }
 }
コード例 #5
0
 private void OnJobFailure(
     Exception exception
     )
 {
     if (JobFailure != null)
     {
         JobFailureEventArgs args = new JobFailureEventArgs
         {
             Exception = exception
         };
         JobFailure(this, args);
     }
 }