public HomeController(IConfiguration configuration, IMemoryCache memoryCache) { config = configuration; cache = memoryCache; jobStore = new JobStatusStore(config["TextFileClassifier_AzureStorageConnection"], config["TextFileClassifier_JobStatusContainer"]); }
public ParsingWorkflow(IJobStatusStore statusStore, IBlobReader blobReader, IContentExtractor extractor, ISearchIndex searchIndex, IDocumentScorer documentScorer) { this.statusStore = statusStore; this.blobReader = blobReader; this.extractor = extractor; this.searchIndex = searchIndex; this.docScorer = documentScorer; }
public UploadTask(IJobStatusStore jobStatusStore, string sourceDirectory, int maxFiles, string jobHistoryFileLocation) { _jobStore = jobStatusStore; _srcDir = sourceDirectory; _maxFiles = maxFiles; _jobHistoryLocation = jobHistoryFileLocation; var storageAccount = CloudStorageAccount.Parse(Configuration.StorageConnectionString); var blobClient = storageAccount.CreateCloudBlobClient(); _uploadContainer = blobClient.GetContainerReference(Configuration.FileUploadContainerName); _uploadContainer.CreateIfNotExistsAsync().Wait(); }
public ReportTask(IJobStatusStore jobStatusStore, string jobLogLocation, string reportLocation) { _jobStore = jobStatusStore; _jobLogLocation = jobLogLocation; _reportLocation = reportLocation; }
public ResultsController(IConfiguration configuration) { config = configuration; jobStore = new JobStatusStore(config["TextFileClassifier_AzureStorageConnection"], config["TextFileClassifier_JobStatusContainer"]); }