public RemoteRepositoryLoadController(INotifyRepository Repository, ICollection<FirmwarePackageViewModel> PackagesCollection,
                                       List<ComponentTarget> RequiredTargets, IDispatcherFacade Dispatcher,
                                       IFirmwarePackageViewModelKeyFormatter KeyFormatter, CancellationTokenSource CancellationTokenSource,
                                       IFirmwarePackageViewModelFactory PackageViewModelFactory)
     : base(Repository, PackagesCollection, RequiredTargets, Dispatcher, KeyFormatter, CancellationTokenSource)
 {
     _packageViewModelFactory = PackageViewModelFactory;
 }
        public NotifyApplication(INotificationSender notificationSender, INotifyFormatter formatter, INotifyRepository repository)
        {
            _notificationSender = notificationSender;

            _formatter  = formatter;
            _repository = repository;

            _repository = repository;
        }
 public DispatcherRepositoryLoadControllerBase(INotifyRepository Repository, ICollection<FirmwarePackageViewModel> PackagesCollection,
                                               List<ComponentTarget> RequiredTargets, IDispatcherFacade Dispatcher,
                                               IFirmwarePackageViewModelKeyFormatter KeyFormatter, CancellationTokenSource CancellationTokenSource)
 {
     _repository = Repository;
     _packagesCollection = PackagesCollection;
     _requiredTargets = RequiredTargets;
     _dispatcher = Dispatcher;
     _keyFormatter = KeyFormatter;
     _cancellationTokenSource = CancellationTokenSource;
 }
        public IntegratedFirmwareSelectorViewModel(INotifyRepository Repository, List<ComponentTarget> RequiredTargets,
                                                   ILoadControllerFactory LoadControllerFactory)
            : base("Интегрированный")
        {
            _packages = new ObservableCollection<FirmwarePackageViewModel>();
            Packages = new ReadOnlyObservableCollection<FirmwarePackageViewModel>(_packages);
            _cancellationTokenSource = new CancellationTokenSource();

            BrowseFolderCommand = new DelegateCommand(ExecuteMethod);

            IRepositoryLoadController lc = LoadControllerFactory.GetLocalLoadController(Repository, _packages, RequiredTargets, _cancellationTokenSource);
            lc.BeginLoad();
        }
 public IRepositoryLoadController GetRemoteLoadController(INotifyRepository Repository, ICollection<FirmwarePackageViewModel> PackagesCollection,
                                                          List<ComponentTarget> RequiredTargets, CancellationTokenSource CancellationTokenSource)
 {
     return new RemoteRepositoryLoadController(Repository, PackagesCollection, RequiredTargets, _dispatcher, _keyFormatter, CancellationTokenSource,
                                               _firmwarePackageViewModelFactory);
 }
 public NotifyController(INotifyRepository notifyRepository, IMapper mapper)
 {
     _NotifyService = notifyRepository;
     _mapper        = mapper;
 }
Exemplo n.º 7
0
 public AccountService(IRepository <UserInfo> userInfoRepository, INotifyRepository notifyRepository, ICacheProvider cacheProvider)
 {
     _userInfoRepository = userInfoRepository;
     _notifyRepository   = notifyRepository;
     _cacheProvider      = cacheProvider;
 }