コード例 #1
0
 public DumpRetentionService(DumpRepository dumpRepo, BundleRepository bundleRepo, PathHelper pathHelper, IOptions <SuperDumpSettings> settings, JiraIssueRepository jiraIssueRepository)
 {
     this.dumpRepo            = dumpRepo ?? throw new ArgumentNullException("Dump Repository must not be null!");
     this.bundleRepo          = bundleRepo ?? throw new ArgumentNullException("Bundle Repository must not be null!");
     this.pathHelper          = pathHelper ?? throw new ArgumentException("PathHelper must not be null!");
     this.jiraIssueRepository = jiraIssueRepository;
     this.settings            = settings?.Value ?? throw new ArgumentException("Settings must not be null!");
 }
コード例 #2
0
 public SearchService(
     BundleRepository bundleRepo,
     DumpRepository dumpRepo,
     SimilarityService similarityService,
     ElasticSearchService elasticService,
     IOptions <SuperDumpSettings> settings,
     JiraIssueRepository jiraIssueRepository)
 {
     this.bundleRepo          = bundleRepo;
     this.dumpRepo            = dumpRepo;
     this.similarityService   = similarityService;
     this.elasticService      = elasticService;
     this.jiraIssueRepository = jiraIssueRepository;
     this.settings            = settings.Value;
 }