public ProjectService(IParserService parserService, IStatusBarService statusBarService,
                       IFileTypeMethodFactory fileTypeMethodFactory)
 {
     _parserService    = parserService;
     _statusBarService = statusBarService;
     fileTypeMethodFactory.RegisterFileType(ProjectExtension, OpenProject);
 }
Beispiel #2
0
 public EventsHandler(
     IKeybindEvents events,
     IWhisperService whisperService,
     INativeClipboard clipboard,
     INativeKeyboard keyboard,
     ILogger logger,
     ITradeSearchService tradeSearchService,
     IWikiProvider wikiProvider,
     IViewLocator viewLocator,
     IChatService chatService,
     IStashService stashService,
     SidekickSettings settings,
     IParserService parserService)
 {
     this.events             = events;
     this.whisperService     = whisperService;
     this.clipboard          = clipboard;
     this.keyboard           = keyboard;
     this.logger             = logger.ForContext(GetType());
     this.tradeSearchService = tradeSearchService;
     this.logger             = logger.ForContext(GetType());
     this.wikiProvider       = wikiProvider;
     this.viewLocator        = viewLocator;
     this.chatService        = chatService;
     this.stashService       = stashService;
     this.settings           = settings;
     this.parserService      = parserService;
     Initialize();
 }
Beispiel #3
0
        public PriceViewModel(
            ILogger logger,
            IDebouncer debouncer,
            ITradeSearchService tradeSearchService,
            IPoeNinjaCache poeNinjaCache,
            IStaticDataService staticDataService,
            ILanguageProvider languageProvider,
            IPoePriceInfoClient poePriceInfoClient,
            INativeClipboard nativeClipboard,
            IParserService parserService,
            SidekickSettings settings,
            IStatDataService statDataService,
            IItemCategoryService itemCategoryService)
        {
            this.logger              = logger;
            this.debouncer           = debouncer;
            this.tradeSearchService  = tradeSearchService;
            this.poeNinjaCache       = poeNinjaCache;
            this.staticDataService   = staticDataService;
            this.languageProvider    = languageProvider;
            this.poePriceInfoClient  = poePriceInfoClient;
            this.nativeClipboard     = nativeClipboard;
            this.parserService       = parserService;
            this.settings            = settings;
            this.statDataService     = statDataService;
            this.itemCategoryService = itemCategoryService;
            Task.Run(Initialize);

            PropertyChanged += PriceViewModel_PropertyChanged;
        }
Beispiel #4
0
        public MainForm()
        {
            InitializeComponent();

            _parser    = ServiceFactory.CreateParserService();
            _generator = ServiceFactory.CreateGeneratorService();
        }
 public MainWindowService(IGeolocationService geolocationService, IParserService parserService,
                          ILogRepository logRepository)
 {
     _geolocationService = geolocationService;
     _parserService      = parserService;
     _logRepository      = logRepository;
 }
Beispiel #6
0
 public InActor()
 {
     _parser = DependencyInjector.GetInstance <IParserService>();
     Receive <bool>(OnInputRequest);
     Receive <InActorArguments>(OnInvoke);
     Receive <string>(OnPing);
 }
Beispiel #7
0
 public CommandController(
     EnbsvParserService enbsvParserService,
     GazServiceParserService gazServiceParserService,
     IPartsRepository partsRepository,
     IPartProducerRepository partProducerRepository,
     ICatalogItemRepository catalogItemRepository,
     IPartSupplierRepository partSupplierRepository,
     ISupplierPriceItemRepository supplierPriceItemRepository,
     IModerationService moderationService,
     IHostingEnvironment hostingEnvironment,
     ISchedulerWrapper scheduler,
     IGoogleDriveService googleDriveService)
 {
     this._scheduler                   = scheduler;
     this._googleDriveService          = googleDriveService;
     this._moderationService           = moderationService;
     this._gazServiceParserService     = gazServiceParserService;
     this._enbsvParserService          = enbsvParserService;
     this._partSupplierRepository      = partSupplierRepository;
     this._partsRepository             = partsRepository;
     this._partProducerRepository      = partProducerRepository;
     this._hostingEnvironment          = hostingEnvironment;
     this._catalogItemRepository       = catalogItemRepository;
     this._supplierPriceItemRepository = supplierPriceItemRepository;
 }
Beispiel #8
0
 public UserController(
     IUserService userService,
     IParserService parserService,
     IAuthorizationService authorizationService) : base(userService, authorizationService)
 {
     _parserService = parserService;
 }
Beispiel #9
0
 public LinkService(IDataRepository repository, ILogger <LinkService> logger, IParserService parser, WebClient webClient)
 {
     this.repository = repository;
     this.logger     = logger;
     this.webClient  = webClient;
     this.parser     = parser;
 }
Beispiel #10
0
 public DownloadsService(RedseatDbContext dbContext, ILogger <MonitorProgressService> logger, IServiceProvider serviceProvider, IParserService parserService)
 {
     _dbContext       = dbContext;
     _logger          = logger;
     _serviceProvider = serviceProvider;
     _parserService   = parserService;
 }
Beispiel #11
0
 public MainProcedure(IParserService parserServiceManager,
                      IWebSiteStatusInspector webSiteStatusInspectorManager, IReportService reportServiceManager)
 {
     _parserServiceManager          = parserServiceManager;
     _webSiteStatusInspectorManager = webSiteStatusInspectorManager;
     _reportServiceManager          = reportServiceManager;
 }
Beispiel #12
0
 public DataService(
     IPersistenceService persistenceService,
     IParserService parserService)
 {
     this.persistenceService    = persistenceService;
     this.parserService         = parserService;
     parserService.DataChanged += (s, e) => DataChanged?.Invoke(this, e);
 }
        public CrawlerService(IEntryCache entryCache, IParserService parserService)
        {
            Argument.IsNotNull(() => entryCache);
            Argument.IsNotNull(() => parserService);

            _entryCache = entryCache;
            _parserService = parserService;
        }
        public CarPriceController(IHistoryService historyService, IParserService parserServcie, IMapper mapper)
        {
            _historyService = historyService ?? throw new ArgumentNullException(nameof(historyService));

            _parserService = parserServcie ?? throw new ArgumentNullException(nameof(parserServcie));

            _mapper = mapper;
        }
 public SyncDataService(ICategoryManager categoryManager, IProviderManager providerManager,
     IContentManager contentManager, IParserService parserService)
 {
     _categoryManager = categoryManager;
     _providerManager = providerManager;
     _contentManager = contentManager;
     _parserService = parserService;
     Locked = false;
 }
 public BuildDefinitionsService(
     IConsole console,
     IConnectionService connectionService,
     IParserService parserService)
 {
     _console           = console;
     _connectionService = connectionService;
     _parserService     = parserService;
 }
 public AbilityViewModel(
     IParserService parserService, 
     ILoggerService loggerService,
     ISettingsService settingsService)
 {
     _parserService = parserService;
     _loggerService = loggerService;
     _settingsService = settingsService;
 }
Beispiel #18
0
 public Application(
     IWorldFactory worldFactory,
     IParserService parserService,
     IDisplayService displayService)
 {
     _worldFactory   = worldFactory;
     _parserService  = parserService;
     _displayService = displayService;
 }
 public DownloaderController(ILogger <DownloaderController> logger, RedseatDbContext context, IParserService parserService, IBackgroundJobClient backgroundJobs, IDownloadersService downloadersService, IMapper mapper)
 {
     _logger             = logger;
     _context            = context;
     _parserService      = parserService;
     _backgroundJobs     = backgroundJobs;
     _downloadersService = downloadersService;
     _mapper             = mapper;
 }
 public PersistenceService(
     ICacheSerializer cacheSerializer,
     ISaveSerializer saveSerializer,
     IParserService parserService)
 {
     this.cacheSerializer = cacheSerializer;
     this.saveSerializer  = saveSerializer;
     this.parserService   = parserService;
 }
 public MonitorProgressService(RedseatDbContext dbContext, IShowService showService, IDownloadersService downloaderService, IDownloadsService downloadsService, ILogger <MonitorProgressService> logger, IParserService parserService, IBackgroundJobClient backgroundJobs)
 {
     _dbContext         = dbContext;
     _showService       = showService;
     _downloaderService = downloaderService;
     _downloadsService  = downloadsService;
     _logger            = logger;
     _parserService     = parserService;
     _backgroundJobs    = backgroundJobs;
 }
 public DetailsCommand(
     IConfiguration configuration,
     IConsole console,
     IConnectionService connectionService,
     IParserService parserService,
     IFileService fileService,
     CommandLineApplication app)
     : base(configuration, console, connectionService, parserService, fileService, app)
 {
     _app = app;
 }
Beispiel #23
0
 public CallbackHandler(
     IParserService parserService,
     TelegramBotClient client,
     IAccountRepository accountRepository,
     MarathonContext context)
 {
     _parserService     = parserService ?? throw new System.ArgumentNullException(nameof(parserService));
     _client            = client ?? throw new System.ArgumentNullException(nameof(client));
     _accountRepository = accountRepository ?? throw new System.ArgumentNullException(nameof(accountRepository));
     _context           = context ?? throw new System.ArgumentNullException(nameof(context));
 }
Beispiel #24
0
        public void ParserServiceTest()
        {
            ProjectService target   = new ProjectService(); // TODO: Initialize to an appropriate value
            IParserService expected = null;                 // TODO: Initialize to an appropriate value
            IParserService actual;

            target.ParserService = expected;
            actual = target.ParserService;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
 public CalculatorReplLoop(
     ICalculator calculator, 
     IInputService inputService,
     IOutputService outputService,
     IParserService parserService)
 {
     this.calculator = calculator;
     this.outputService = outputService;
     this.inputService = inputService;
     this.inputParserService = parserService;
 }
Beispiel #26
0
        public Base_Processor(IParserService parserService, List <ProcessedPage> pages, int bankId, string fileName)
        {
            //, IParserRepository<BankConfig>
            _parserService = parserService;

            _pagesToProcess = pages;

            _intBankId = bankId;

            _fileName = fileName;
        }
Beispiel #27
0
 public GotoDefinitionAction(FilePath fileName, string text, int currentLine)
 {
     _fileName       = fileName;
     _text           = text;
     _currentLine    = currentLine;
     _dockingService = DependencyFactory.Resolve <IDockingService>();
     _fileService    = DependencyFactory.Resolve <IFileService>();
     _parserService  = DependencyFactory.Resolve <IParserService>();
     _projectService = DependencyFactory.Resolve <IProjectService>();
     _findResults    = _dockingService.GetDockingWindow <FindResultsWindow>();
 }
        public GotoSymbol()
        {
            _parserService = DependencyFactory.Resolve <IParserService>();
            InitializeComponent();
            IEnumerable <IParserData> parserData = _parserService.GetAllParserData().ToList();

            foreach (IParserData data in parserData)
            {
                inputBox.AutoCompleteCustomSource.Add(data.Name);
            }
        }
Beispiel #29
0
        Project(IAssemblerService assemblerService, IParserService parserService)
        {
            BuildSystem      = new BuildSystem(this, false);
            this.IncludeDirs = new List <string>();

            ProjectOutputs = new List <string>();
            LabelOutputs   = new List <string>();
            ListOutputs    = new List <string>();

            AssemblerService = assemblerService;
            ParserService    = parserService;
        }
Beispiel #30
0
        private static int RunCommand <TParserOptions, TParserService, TModel>(TParserOptions parserOptions, List <TModel> items, ServiceProvider serviceProvider)
            where TParserOptions : ParserOptions
            where TParserService : IParserService
            where TModel : class
        {
            string[] files = Directory.GetFiles(parserOptions.LogsFolderPath);

            IParserService parserService = serviceProvider.GetService <TParserService>();

            parserService.RunParser(files, parserOptions.IsSaveLogsToDB);

            return(0);
        }
 public ChunkerController(
     IConfigsLoader configurationService,
     IStorageFactoryFactory storageFactoryFactory,
     ILoggerService loggerService,
     IChunkerService chunkerService,
     IParserService parserService)
 {
     _configurationService  = configurationService;
     _storageFactoryFactory = storageFactoryFactory;
     _loggerService         = loggerService;
     _chunkerService        = chunkerService;
     _parserService         = parserService;
 }
        private void InitServices()
        {
            var serviceProvider = new ServiceCollection()
                                  .AddSingleton <ILoggerFactory, LoggerFactory>()
                                  .AddTransient <ICertificateStoreService, CertificateStoreService>()
                                  .AddTransient <IExcelService, ExcelService>()
                                  .AddTransient <IParserService, ParserService>()
                                  .AddTransient <IFileService, FileService>()
                                  .BuildServiceProvider();

            this.loggerFactory = serviceProvider.GetService <ILoggerFactory>();
            this.parserService = serviceProvider.GetService <IParserService>();
        }
        public static ICompilation GetCompilationForCurrentProject(this IParserService svc)
        {
            if (svc == null)
            {
                throw new ArgumentNullException("svc");
            }
            IProject project = SD.ProjectService.CurrentProject;

            if (project == null)
            {
                return(null);
            }
            return(SD.ParserService.GetCompilation(project));
        }
Beispiel #34
0
 public MasterService(
     IWorldService worldService,
     ICharacterService characterService,
     ILanguageService languageService,
     IParserService parserService,
     IPrintService printService
     )
 {
     this.worldService     = worldService;
     this.characterService = characterService;
     this.languageService  = languageService;
     this.parserService    = parserService;
     this.printService     = printService;
 }