public InputOutputDataService(IConfiguration configuration, IWriter writer, IFileProcessorService transformerService, IReportService reportService) { _writer = writer; _reportService = reportService; _transformerService = transformerService; _format = configuration.GetSection("FormatToFile").Value; }
public FileProcessorController(ILogger <FileProcessorController> logger, IFileProcessorService fileProcessorService, IFileManager fileManager) { _logger = logger; _fileProcessorService = fileProcessorService; _fileManager = fileManager; }
public TibcoBWDirectoryProcessorService(IFileProcessorService tibcoFileProcessorService, IFileProcessorService xsdFileProcessorService, IFileProcessorService globalVariableProcessor, IFileProcessorService adapterSchemaProcessor, IFileFilter fileFilter) { this.tibcoFileProcessorService = tibcoFileProcessorService; this.xsdFileProcessorService = xsdFileProcessorService; this.globalVariableProcessor = globalVariableProcessor; this.adapterSchemaProcessor = adapterSchemaProcessor; this.filter = fileFilter; }
public EditProfileViewModel(IEventAggregator eventAggregator, IFileProcessorService fileProcessorService, IRegionManager regionManager) { _eventAggregator = eventAggregator; _fileProcessorService = fileProcessorService; _regionManager = regionManager; _eventAggregator.GetEvent <EditUserEvent>().Subscribe(EditUserCalled); SelectImageCommand = new DelegateCommand(SelectImage); SaveCommand = new DelegateCommand(Save); }
public void Setup() { _fileService = new Mock <IReportService>(); _configuration = new Mock <IConfiguration>(); _retriveDataService = new Mock <IRetrieveDataService>(); _buildSplitter = new Mock <IBuilderSplitter>(); SetDefaultConfiguration(_configuration); _transformService = new FileProcessorService(_configuration.Object, _buildSplitter.Object, _retriveDataService.Object); }
public RegisterViewModel(IFileProcessorService fileProcessorService, IRegionManager regionManager, IPasswordProtectionService passwordProtectionService, IOverlayService overlayService) { _fileProcessorService = fileProcessorService; _regionManager = regionManager; _passwordProtectionService = passwordProtectionService; _overlayService = overlayService; SelectImageCommand = new DelegateCommand(SelectImage); PasswordChangedCommand = new DelegateCommand <object>(PasswordChanged); RePasswordChangedCommand = new DelegateCommand <object>(RePasswordChanged); LoginCommand = new DelegateCommand(() => _regionManager.RequestNavigate(RegionNames.MainRegion, nameof(LoginView))); RegisterCommand = new DelegateCommand(Register); User = new SocketUser(); }
/// <summary> /// Creates an instance of the chat view model and resolves its dependencies /// </summary> /// <param name="eventAggregator"></param> /// <param name="chatManager"></param> /// <param name="currentUser"></param> /// <param name="networkConnectionController"></param> /// <param name="fileProcessorService"></param> public ChatViewModel(IEventAggregator eventAggregator, IChatManager chatManager, ICurrentUser currentUser, INetworkConnectionController networkConnectionController, IFileProcessorService fileProcessorService) { _eventAggregator = eventAggregator; _chatManager = chatManager; _currentUser = currentUser; _networkConnectionController = networkConnectionController; _fileProcessorService = fileProcessorService; _eventAggregator.GetEvent <UserSelected>().Subscribe(UserSelected); _chatManager.NewMessageCallback(UpdateChat); Images = new ObservableCollection <byte[]>(); ChatMessages = new ObservableCollection <object>(); SendMessageCommand = new DelegateCommand(async() => await SendMessage()); KeyDownCommand = new DelegateCommand(OnKeyDown); SelectImageCommand = new DelegateCommand(SelectImage); _networkConnectionController.MessageReceivedEventHandler += MessageReceivedEventHandler; _eventAggregator.GetEvent <LogoffEvent>().Subscribe(Logoff); ChatMessages.Add(new ChatMessageModel() { IsSent = true, Message = "Test Message", TimeStamp = DateTime.Now }); ChatMessages.Add(new ChatMessageModel() { IsSent = true, Message = "Test Message", TimeStamp = DateTime.Now }); ChatMessages.Add(new ChatMessageModel() { IsSent = false, Message = "Test Message", TimeStamp = DateTime.Now }); }
/// <summary> /// Initializes a new instance of the <see cref="FileProcessorHostedService"/> class. /// </summary> /// <param name="fileProcessorInstance">The file processor instance.</param> public FileProcessorHostedService(IFileProcessorService fileProcessorInstance) { fileProcessorService = fileProcessorInstance; }
public TibcoBWDirectoryProcessorService(IFileProcessorService tibcoFileProcessorService, IFileProcessorService xsdFileProcessorService) { this.tibcoFileProcessorService = tibcoFileProcessorService; this.xsdFileProcessorService = xsdFileProcessorService; }
public LibraryManagerService(ILogger <LibraryManagerService> logger, IDataService dataService, IFileProcessorService fileProcessorService) { logger.LogDebug("Starting LibraryManagerService"); this.logger = logger; this.dataService = dataService; //Test DB connection dataService.TestConnection(); //Ensure DB is in the correct state DBTableMaintenace(); fileProcessorService.Start(); logger.LogDebug("Started LibraryManagerService"); }