public async Task Execute(GenerateTeksCommandArgs args) { _WorkflowDb.EnsureNoChangesOrTransaction(); _Args = args; await GenWorkflows(); }
public async Task Execute(bool useAllKeys = false) { if (_Disposed) { throw new ObjectDisposedException(JobName); } _WorkflowDbContext.EnsureNoChangesOrTransaction(); _ContentDbContext.EnsureNoChangesOrTransaction(); await CopyInput(useAllKeys); await BuildBatches(); await CommitResults(); }
public async Task Execute(bool useAllKeys = false) { if (_Disposed) { throw new ObjectDisposedException(_JobName); } _Logger.LogInformation($"{_JobName} started - useAllKeys:{useAllKeys}"); _WorkflowDbContext.EnsureNoChangesOrTransaction(); _PublishingDbContext.EnsureNoChangesOrTransaction(); _ContentDbContext.EnsureNoChangesOrTransaction(); await CopyInput(useAllKeys); await BuildBatches(); await CommitResults(); _Logger.LogInformation($"{_JobName} complete."); }