private void Created(object sender, FileSystemEventArgs e) { _logger.LogInformation("File created"); _jobQueue.QueueJob(async token => await _job.HandleNewFileAsync(e.Name, e.FullPath, token)); }
public string StartJob(string storeId, JobType jobType, string jobData) { return(_jobQueue.QueueJob(storeId, jobType, jobData, null)); }