/// <summary> /// Initializes a new instance of the <see cref="JobExecutionResultEventArgs" /> class. /// </summary> /// <param name="result">The value for the <see cref="JobExecutionResultEventArgs.Result" /> property.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="result" /> is <see langword="null" />. /// </exception> public JobExecutionResultEventArgs(IJobExecutionResult result) { if (result == null) { throw new ArgumentNullException("result"); } this._RESULT = result; }
internal void JobStateCompleted(IJobExecutionResult successfulResult) { if (successfulResult == null) throw new ArgumentNullException("successfulResult"); if (successfulResult.State != JobExecutionState.Completed) throw new ArgumentException("Computation is not completed."); ExecutionResult = successfulResult; }