/// <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)); } }
/// <summary> /// Initializes a new instance of the <see cref="WorkExceptionEventArgs"/> class. /// </summary> /// <param name="exception">The exception.</param> public WorkExceptionEventArgs(WorkException exception) { Exception = exception; }