Esempio n. 1
0
 public GenericRejectedEventHandler(ICorrelationContextAccessor contextAccessor,
                                    IOperationsService operationsService, IHubService hubService)
 {
     _contextAccessor   = contextAccessor;
     _operationsService = operationsService;
     _hubService        = hubService;
 }
 public NodeViewModel(
     IFileSystemNodeOpeningBehavior fileSystemNodeOpeningBehavior,
     IOperationsService operationsService,
     IClipboardOperationsService clipboardOperationsService,
     IFilesOperationsMediator filesOperationsMediator,
     IFileSystemNodePropertiesBehavior fileSystemNodePropertiesBehavior,
     IDialogService dialogService,
     ITrashCanService trashCanService,
     IArchiveService archiveService,
     ISystemDialogService systemDialogService,
     IOpenWithApplicationService openWithApplicationService,
     IPathService pathService)
     : base(
         fileSystemNodeOpeningBehavior,
         operationsService,
         clipboardOperationsService,
         filesOperationsMediator,
         fileSystemNodePropertiesBehavior,
         dialogService,
         trashCanService,
         archiveService,
         systemDialogService,
         openWithApplicationService,
         pathService)
 {
 }
 public FileSystemNodeViewModelFactory(
     IFileSystemNodeOpeningBehavior fileOpeningBehavior,
     IFileSystemNodeOpeningBehavior directoryOpeningBehavior,
     IFileSizeFormatter fileSizeFormatter,
     IPathService pathService,
     IOperationsService operationsService,
     IClipboardOperationsService clipboardOperationsService,
     IFilesOperationsMediator filesOperationsMediator,
     IFileSystemNodePropertiesBehavior filePropertiesBehavior,
     IFileSystemNodePropertiesBehavior directoryPropertiesBehavior,
     IDialogService dialogService,
     ITrashCanService trashCanService,
     IFileService fileService,
     IDirectoryService directoryService)
 {
     _fileOpeningBehavior      = fileOpeningBehavior;
     _directoryOpeningBehavior = directoryOpeningBehavior;
     _fileSizeFormatter        = fileSizeFormatter;
     _pathService                 = pathService;
     _operationsService           = operationsService;
     _clipboardOperationsService  = clipboardOperationsService;
     _filesOperationsMediator     = filesOperationsMediator;
     _filePropertiesBehavior      = filePropertiesBehavior;
     _directoryPropertiesBehavior = directoryPropertiesBehavior;
     _dialogService               = dialogService;
     _trashCanService             = trashCanService;
     _fileService                 = fileService;
     _directoryService            = directoryService;
 }
        protected FileSystemNodeViewModelBase(
            IFileSystemNodeOpeningBehavior fileSystemNodeOpeningBehavior,
            IOperationsService operationsService,
            IClipboardOperationsService clipboardOperationsService,
            IFilesOperationsMediator filesOperationsMediator,
            IFileSystemNodePropertiesBehavior fileSystemNodePropertiesBehavior,
            IDialogService dialogService,
            ITrashCanService trashCanService)
        {
            _fileSystemNodeOpeningBehavior    = fileSystemNodeOpeningBehavior;
            _operationsService                = operationsService;
            _clipboardOperationsService       = clipboardOperationsService;
            _filesOperationsMediator          = filesOperationsMediator;
            _fileSystemNodePropertiesBehavior = fileSystemNodePropertiesBehavior;
            _dialogService   = dialogService;
            _trashCanService = trashCanService;

            OpenCommand            = ReactiveCommand.Create(Open);
            StartRenamingCommand   = ReactiveCommand.Create(StartRenaming);
            RenameCommand          = ReactiveCommand.Create(Rename);
            CopyToClipboardCommand = ReactiveCommand.CreateFromTask(CopyToClipboardAsync);
            DeleteCommand          = ReactiveCommand.CreateFromTask(DeleteAsync);
            CopyCommand            = ReactiveCommand.CreateFromTask(CopyAsync);
            MoveCommand            = ReactiveCommand.CreateFromTask(MoveAsync);
            ShowPropertiesCommand  = ReactiveCommand.CreateFromTask(ShowPropertiesAsync);
        }
 public WindowsClipboardOperationsService(
     IClipboardService clipboardService,
     IOperationsService operationsService)
 {
     _clipboardService  = clipboardService;
     _operationsService = operationsService;
 }
Esempio n. 6
0
 public HangedOperationsService(
     IOperationsService operationsService,
     ILogFactory logFactory,
     TimeSpan idleTime)
     : base(idleTime, logFactory)
 {
     _operationsService = operationsService;
 }
Esempio n. 7
0
 public OperationsManager(IOperationsService operationsService, ILogger <OperationsManager> logger, IOperationsClient operationsClient)
 {
     Messages          = new List <IOperationMessage>();
     _logger           = logger;
     _operationsClient = operationsClient;
     operationsService.ConnectionStatusUpdated += ConnectionStatusUpdatedHandler;
     operationsService.MessageReceived         += MessageRecievedHandler;
 }
Esempio n. 8
0
 public HttpExecutor(ILogger <HttpExecutor> logger, IToastService toastService, IOperationsManager operationsManager, IOperationsService operationsService, IHttpClientFactory httpFactory, IUserContext context)
 {
     _logger            = logger;
     _toastService      = toastService;
     _operationsManager = operationsManager;
     _operationsService = operationsService;
     _client            = httpFactory.CreateClient();
     _client.DefaultRequestHeaders.Add("Authorization", $"Bearer {context.Token}");
 }
 public ClipboardOperationsService(
     IClipboardService clipboardService,
     IOperationsService operationsService,
     IEnvironmentService environmentService)
 {
     _clipboardService   = clipboardService;
     _operationsService  = operationsService;
     _environmentService = environmentService;
 }
Esempio n. 10
0
 protected TrashCanServiceBase(
     IMountedDriveService mountedDriveService,
     IOperationsService operationsService,
     IPathService pathService)
 {
     _mountedDriveService = mountedDriveService;
     _operationsService   = operationsService;
     _pathService         = pathService;
 }
Esempio n. 11
0
 public GenericCommandHandler(ICorrelationContextAccessor contextAccessor,
                              IMessagePropertiesAccessor messagePropertiesAccessor,
                              IOperationsService operationsService, IHubService hubService)
 {
     _contextAccessor           = contextAccessor;
     _messagePropertiesAccessor = messagePropertiesAccessor;
     _operationsService         = operationsService;
     _hubService = hubService;
 }
 public DragAndDropOperationsMediator(
     IOperationsService operationsService,
     IDirectoryService directoryService,
     IPathService pathService)
 {
     _operationsService = operationsService;
     _directoryService  = directoryService;
     _pathService       = pathService;
 }
Esempio n. 13
0
 protected TrashCanServiceBase(
     IDriveService driveService,
     IOperationsService operationsService,
     IPathService pathService)
 {
     _driveService      = driveService;
     _operationsService = operationsService;
     _pathService       = pathService;
 }
Esempio n. 14
0
 public FeeCollectedSubscriber(
     IOperationsService operationsService,
     string connectionString,
     string exchangeName,
     string queueName,
     ILogFactory logFactory) : base(connectionString, exchangeName, queueName, logFactory)
 {
     _operationsService = operationsService;
     _log = logFactory.CreateLog(this);
 }
Esempio n. 15
0
 public PartnersPaymentTokensReservedSubscriber(
     IOperationsService operationsService,
     string connectionString,
     string exchangeName,
     string queueName,
     ILogFactory logFactory) : base(connectionString, exchangeName, queueName, logFactory)
 {
     _operationsService = operationsService;
     _log = logFactory.CreateLog(this);
 }
 public TransferSubscriber(
     string connectionString,
     string exchangeName,
     string queueName,
     IOperationsService operationsService,
     ILogFactory logFactory) : base(connectionString, exchangeName, queueName, true, logFactory)
 {
     _operationsService = operationsService;
     _log = logFactory.CreateLog(this);
 }
 public TransferToExternalProcessedHandler(
     IOperationsService operationsService,
     IBlockchainEncodingService blockchainEncodingService,
     ISettingsService settingsService,
     ILogFactory logFactory)
 {
     _operationsService         = operationsService;
     _blockchainEncodingService = blockchainEncodingService;
     _settingsService           = settingsService;
     _log = logFactory.CreateLog(this);
 }
Esempio n. 18
0
 public WalletLinkingStatusChangeCompletedHandler(
     IOperationsService operationsService,
     IBlockchainEncodingService blockchainEncodingService,
     ISettingsService settingsService,
     ILogFactory logFactory)
 {
     _operationsService         = operationsService;
     _blockchainEncodingService = blockchainEncodingService;
     _settingsService           = settingsService;
     _log = logFactory.CreateLog(this);
 }
Esempio n. 19
0
 public ArchiveService(
     IArchiveTypeMapper archiveTypeMapper,
     IPathService pathService,
     IOperationsService operationsService,
     IFileNameGenerationService fileNameGenerationService)
 {
     _archiveTypeMapper         = archiveTypeMapper;
     _pathService               = pathService;
     _operationsService         = operationsService;
     _fileNameGenerationService = fileNameGenerationService;
 }
Esempio n. 20
0
 public ReferralStakeTokensReleasedSubscriber(
     string connectionString,
     string exchangeName,
     string queueName,
     IOperationsService operationsService,
     ILogFactory logFactory)
     : base(connectionString, exchangeName, queueName, logFactory)
 {
     _operationsService = operationsService;
     _log = logFactory.CreateLog(this);
 }
Esempio n. 21
0
 public MacTrashCanService(
     IMountedDriveService mountedDriveService,
     IOperationsService operationsService,
     IPathService pathService,
     INodeService nodeService,
     IHomeDirectoryProvider homeDirectoryProvider)
     : base(mountedDriveService, operationsService, pathService)
 {
     _pathService           = pathService;
     _nodeService           = nodeService;
     _homeDirectoryProvider = homeDirectoryProvider;
 }
Esempio n. 22
0
 public DirectoryViewModel(
     IFileSystemNodeOpeningBehavior fileSystemNodeOpeningBehavior,
     IOperationsService operationsService,
     IClipboardOperationsService clipboardOperationsService,
     IFilesOperationsMediator filesOperationsMediator)
     : base(
         fileSystemNodeOpeningBehavior,
         operationsService,
         clipboardOperationsService,
         filesOperationsMediator)
 {
 }
Esempio n. 23
0
 public MacTrashCanService(
     IDriveService driveService,
     IOperationsService operationsService,
     IPathService pathService,
     IFileService fileService,
     IEnvironmentService environmentService)
     : base(driveService, operationsService, pathService, fileService)
 {
     _pathService        = pathService;
     _fileService        = fileService;
     _environmentService = environmentService;
 }
 public OperationsController(
     IOperationsFetcher operationsFetcher,
     IOperationStatusUpdater operationStatusUpdater,
     IOperationRequestsProducer operationsRequestsProducer,
     IOperationsService operationsService,
     IMapper mapper)
 {
     _operationsFetcher          = operationsFetcher;
     _operationStatusUpdater     = operationStatusUpdater;
     _operationsRequestsProducer = operationsRequestsProducer;
     _operationsService          = operationsService;
     _mapper = mapper;
 }
Esempio n. 25
0
 public LinuxTrashCanService(
     IDriveService driveService,
     IOperationsService operationsService,
     IPathService pathService,
     IFileService fileService,
     IEnvironmentService environmentService,
     IDirectoryService directoryService)
     : base(driveService, operationsService, pathService, fileService)
 {
     _pathService        = pathService;
     _fileService        = fileService;
     _environmentService = environmentService;
     _directoryService   = directoryService;
 }
Esempio n. 26
0
 public TransfersService(
     ITransfersRepository transfersRepository,
     IOperationsService operationsService,
     IEncoderService encoderService,
     ISettingsService settingsService,
     IPrivateBlockchainFacadeClient privateBlockchainFacadeClient,
     ILogFactory logFactory)
 {
     _transfersRepository           = transfersRepository;
     _operationsService             = operationsService;
     _encoderService                = encoderService;
     _settingsService               = settingsService;
     _privateBlockchainFacadeClient = privateBlockchainFacadeClient;
     _log = logFactory.CreateLog(this);
 }
Esempio n. 27
0
        public WindowsTrashCanService(
            IDriveService driveService,
            IOperationsService operationsService,
            IPathService pathService,
            IFileService fileService,
            IEnvironmentService environmentService,
            string sid)
            : base(driveService, operationsService, pathService)
        {
            _pathService        = pathService;
            _fileService        = fileService;
            _environmentService = environmentService;
            _sid = sid;

            _random = new Random();
        }
Esempio n. 28
0
 public MacTrashCanService(
     IMountedDriveService mountedDriveService,
     IOperationsService operationsService,
     IPathService pathService,
     IFileService fileService,
     IEnvironmentService environmentService,
     IDirectoryService directoryService,
     IHomeDirectoryProvider homeDirectoryProvider)
     : base(mountedDriveService, operationsService, pathService)
 {
     _pathService           = pathService;
     _fileService           = fileService;
     _environmentService    = environmentService;
     _directoryService      = directoryService;
     _homeDirectoryProvider = homeDirectoryProvider;
 }
Esempio n. 29
0
 public FileSystemNodeViewModelFactory(
     IFileSystemNodeOpeningBehavior fileOpeningBehavior,
     IFileSystemNodeOpeningBehavior directoryOpeningBehavior,
     IFileSizeFormatter fileSizeFormatter,
     IPathService pathService,
     IOperationsService operationsService,
     IClipboardOperationsService clipboardOperationsService,
     IFilesOperationsMediator filesOperationsMediator)
 {
     _fileOpeningBehavior      = fileOpeningBehavior;
     _directoryOpeningBehavior = directoryOpeningBehavior;
     _fileSizeFormatter        = fileSizeFormatter;
     _pathService                = pathService;
     _operationsService          = operationsService;
     _clipboardOperationsService = clipboardOperationsService;
     _filesOperationsMediator    = filesOperationsMediator;
 }
Esempio n. 30
0
        public WindowsTrashCanService(
            IDriveService driveService,
            IOperationsService operationsService,
            IPathService pathService,
            IFileService fileService,
            IEnvironmentService environmentService,
            IProcessService processService)
            : base(driveService, operationsService, pathService, fileService)
        {
            _pathService        = pathService;
            _fileService        = fileService;
            _environmentService = environmentService;

            _random = new Random();

            InitializeAsync(processService).Forget();
        }
 public void SetUp()
 {
     _operations = MockRepository.GenerateMock<IOperations<Fraction>>();
     _helper = MockRepository.GenerateMock<IOperationsServiceHelper>();
     _service = new OperationsService(_operations, _helper);
 }
 public FractionController(IOperationsService service)
 {
     _service = service;
 }
 public FractionController()
 {
     _service = new OperationsService();
 }
 public void SetUp()
 {
     _service = MockRepository.GenerateMock<IOperationsService>();
     _controller = new FractionController(_service);
 }