コード例 #1
0
 /// <summary>
 /// Called when [work exception].
 /// </summary>
 /// <param name="exception">The exception.</param>
 protected virtual void OnWorkException(WorkException exception)
 {
     if (RemoteWorkException != null)
     {
         RemoteWorkException(this, new WorkExceptionEventArgs(exception));
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WorkExceptionEventArgs"/> class.
 /// </summary>
 /// <param name="exception">The exception.</param>
 public WorkExceptionEventArgs(WorkException exception)
 {
     Exception = exception;
 }