/// <summary> /// Mark sync as error /// </summary> public void Error() { try { Trace.TraceInformation("Marking Synchrnoization Job Error"); // Register using (var dao = new SyncData()) { this.Success = false; this.StopTime = DateTime.Now; dao.CompleteSynchronizationJob(this.JobId, false); dao.Commit(); } } catch (Exception e) { Trace.TraceError(e.ToString()); } finally { } }