Esempio n. 1
0
 public OperationsService(
     IOperationsFactory operationsFactory,
     IDirectoryService directoryService,
     IResourceOpeningService resourceOpeningService,
     IFileService fileService,
     IPathService pathService,
     IOperationsStateService operationsStateService)
 {
     _operationsFactory      = operationsFactory;
     _directoryService       = directoryService;
     _resourceOpeningService = resourceOpeningService;
     _fileService            = fileService;
     _pathService            = pathService;
     _operationsStateService = operationsStateService;
 }
Esempio n. 2
0
    public OperationsStatesListViewModel(
        IOperationsStateService operationsStateService,
        IOperationStateViewModelFactory operationStateViewModelFactory,
        IApplicationDispatcher applicationDispatcher,
        IDialogService dialogService,
        OperationsStatesConfiguration configuration)
    {
        _operationsStateService         = operationsStateService;
        _operationStateViewModelFactory = operationStateViewModelFactory;
        _applicationDispatcher          = applicationDispatcher;
        _dialogService = dialogService;

        _activeOperations               = new ObservableCollection <IOperationStateViewModel>();
        _finishedOperationsQueue        = new LimitedSizeStack <IOperationStateViewModel>(configuration.MaximumFinishedOperationsCount);
        _operationsViewModelsDictionary = new ConcurrentDictionary <IOperation, IOperationStateViewModel>();

        SubscribeToEvents();
    }
Esempio n. 3
0
 public OperationsStateServiceTests()
 {
     _operationsStateService = new OperationsStateService();
 }