コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrintJobClientLog" /> class.
 /// </summary>
 /// <param name="executionData">The execution data.</param>
 /// <param name="file">The file that was printed.</param>
 /// <param name="printQueue">The print queue to which the file was printed.</param>
 /// <param name="result">A <see cref="PrintingEngineResult" /> with data about the printing operation.</param>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="executionData" /> is null.
 /// <para>or</para>
 /// <paramref name="result" /> is null.
 /// </exception>
 public PrintJobClientLog(PluginExecutionData executionData, FileInfo file, PrintQueue printQueue, PrintingEngineResult result)
     : this(executionData, file, printQueue, GetFileId(result))
 {
     JobStartDateTime   = result.JobStartTime;
     JobEndDateTime     = result.JobEndTime;
     PrintStartDateTime = result.PrintStartTime;
 }