/// <summary> /// Submits the pull print retrieval log. /// </summary> /// <param name="log">The log.</param> protected void SubmitPullPrintRetrievalLog(PullPrintJobRetrievalLog log) { log.FinalJobCount = (short)FinalJobCount; log.JobEndDateTime = DateTime.Now; ExecutionServices.DataLogger.Submit(log); }
/// <summary> /// Sets the pull print retrieval log. /// </summary> /// <param name="solutionType">Type of the solution.</param> /// <returns></returns> protected PullPrintJobRetrievalLog SetPullPrintRetrievalLog(string solutionType) { PullPrintJobRetrievalLog log = new PullPrintJobRetrievalLog(ExecutionData) { DeviceId = DeviceInfo.AssetId, JobStartDateTime = DateTime.Now, InitialJobCount = (short)InitialJobCount, JobEndStatus = "Failed", SolutionType = solutionType, UserName = ExecutionData.Credential.UserName, NumberOfCopies = 1, }; return(log); }