Example #1
0
        public static async Task <Batch> CreateAsync(
            string batchUri,
            IBatchContentService batchContentService)
        {
            var batchContent = await batchContentService.GetBatchFileContentAsync(batchUri);

            return(new Batch(
                       Guid.NewGuid(),
                       batchUri,
                       batchContent));
        }
 public VetBatchJob(
     IBatchRepository batchRepository,
     IBatchContentService batchContentService,
     IBatchReportUriGenerator batchReportUriGenerator,
     IEnumerable <IBatchVettingPlugin> vettingPlugins,
     IBatchVettingReportStoreService batchVettingReportStoreService,
     ITracer tracer)
 {
     _batchRepository                = batchRepository;
     _batchContentService            = batchContentService;
     _batchReportUriGenerator        = batchReportUriGenerator;
     _vettingPlugins                 = vettingPlugins;
     _batchVettingReportStoreService = batchVettingReportStoreService;
     _tracer = tracer;
 }