public static void CompleteRun(long runId, bool isSuccess, string statusMessage, int dataSetCount, int deltaCount) { using RunRepository repo = new RunRepository(new UnitOfWork(DatabaseUtil.GetConnection())); repo.Update(runId, isSuccess ? "SUCCESS" : "FAILURE", statusMessage, dataSetCount, deltaCount); }
public static long StartRun(long subscriptionId, string runMode) { using RunRepository repo = new RunRepository(new UnitOfWork(DatabaseUtil.GetConnection())); return(repo.Insert(new Run(subscriptionId, runMode))); }