예제 #1
0
        public frmMain(
            ILogger logger,
            IHttpClient httpClient,
            Container diContainer,
            IAuthorProfileGenerator authorProfileGenerator,
            IAmazonClient amazonClient,
            PreviewProviderFactory previewProviderFactory,
            IAmazonInfoParser amazonInfoParser,
            IAliasesRepository aliasesRepository,
            IPreviewDataExporter previewDataExporter,
            XRayExporterFactory xrayExporterFactory,
            ChaptersService chaptersService,
            IXRayService xrayService,
            ITermsService termsService)
        {
            InitializeComponent();
            _progress = new ProgressBarCtrl(prgBar);
            var rtfLogger = new RtfLogger(txtOutput);

            _logger                 = logger;
            _diContainer            = diContainer;
            _authorProfileGenerator = authorProfileGenerator;
            _amazonClient           = amazonClient;
            _previewProviderFactory = previewProviderFactory;
            _amazonInfoParser       = amazonInfoParser;
            _aliasesRepository      = aliasesRepository;
            _previewDataExporter    = previewDataExporter;
            _xrayExporterFactory    = xrayExporterFactory;
            _chaptersService        = chaptersService;
            _xrayService            = xrayService;
            _termsService           = termsService;
            _logger.LogEvent       += rtfLogger.Log;
            _httpClient             = httpClient;
        }
예제 #2
0
 public XRay(
     ILogger logger,
     IAmazonClient amazonClient,
     SecondaryDataSourceFactory secondaryDataSourceFactory,
     IXRayService xrayService,
     IProgressBar progress,
     IAliasesRepository aliasesRepository,
     IKfxXrayService kfxXrayService,
     XRayExporterFactory xrayExporterFactory,
     IDirectoryService directoryService)
 {
     _logger       = logger;
     _amazonClient = amazonClient;
     _secondaryDataSourceFactory = secondaryDataSourceFactory;
     _xrayService         = xrayService;
     _progress            = progress;
     _aliasesRepository   = aliasesRepository;
     _kfxXrayService      = kfxXrayService;
     _xrayExporterFactory = xrayExporterFactory;
     _directoryService    = directoryService;
 }