コード例 #1
0
        public SuperDumpRepository(
            IOptions <SuperDumpSettings> settings,
            BundleRepository bundleRepo,
            DumpRepository dumpRepo,
            AnalysisService analysisService,
            DownloadService downloadService,
            SymStoreService symStoreService,
            UnpackService unpackService,
            PathHelper pathHelper,
            IdenticalDumpRepository identicalRepository,
            IOneAgentSdk dynatraceSdk)
        {
            this.settings            = settings;
            this.bundleRepo          = bundleRepo;
            this.dumpRepo            = dumpRepo;
            this.analysisService     = analysisService;
            this.downloadService     = downloadService;
            this.symStoreService     = symStoreService;
            this.unpackService       = unpackService;
            this.pathHelper          = pathHelper;
            this.identicalRepository = identicalRepository;
            pathHelper.PrepareDirectories();

            this.dynatraceSdk   = dynatraceSdk;
            messagingSystemInfo = dynatraceSdk.CreateMessagingSystemInfo("Hangfire", "download", MessageDestinationType.QUEUE, ChannelType.IN_PROCESS, null);
        }
コード例 #2
0
 private async Task IncludeOtherFiles(DirectoryInfo dir, DumpMetainfo dumpInfo, HashSet <string> foundPrimaryDumps)
 {
     if (settings.Value.IncludeOtherFilesInReport)
     {
         foreach (FileInfo siblingFile in dir.EnumerateFiles())
         {
             if (UnpackService.IsSupportedArchive(siblingFile.Name))
             {
                 continue;
             }
             if (foundPrimaryDumps.Contains(siblingFile.Name))
             {
                 continue;
             }
             await dumpRepo.AddFileCopy(dumpInfo.Id, siblingFile, SDFileType.SiblingFile);
         }
     }
 }
コード例 #3
0
 public SuperDumpRepository(
     IOptions <SuperDumpSettings> settings,
     BundleRepository bundleRepo,
     DumpRepository dumpRepo,
     AnalysisService analysisService,
     DownloadService downloadService,
     SymStoreService symStoreService,
     UnpackService unpackService,
     PathHelper pathHelper)
 {
     this.settings        = settings;
     this.bundleRepo      = bundleRepo;
     this.dumpRepo        = dumpRepo;
     this.analysisService = analysisService;
     this.downloadService = downloadService;
     this.symStoreService = symStoreService;
     this.unpackService   = unpackService;
     this.pathHelper      = pathHelper;
     pathHelper.PrepareDirectories();
 }