Exemplo n.º 1
0
 public HomeController(IConfiguration configuration, IMemoryCache memoryCache)
 {
     config   = configuration;
     cache    = memoryCache;
     jobStore = new JobStatusStore(config["TextFileClassifier_AzureStorageConnection"],
                                   config["TextFileClassifier_JobStatusContainer"]);
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
 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"]);
 }