コード例 #1
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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);
 }
コード例 #5
0
        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);
        }
コード例 #6
0
 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();
 }
コード例 #7
0
        /// <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
            });
        }
コード例 #8
0
 /// <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;
 }
コード例 #9
0
 public TibcoBWDirectoryProcessorService(IFileProcessorService tibcoFileProcessorService, IFileProcessorService xsdFileProcessorService)
 {
     this.tibcoFileProcessorService = tibcoFileProcessorService;
     this.xsdFileProcessorService = xsdFileProcessorService;
 }
コード例 #10
0
        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");
        }