예제 #1
0
        public CalculateDriverController(IDriveRepository driveRepository, IUserAccountRepository userAccountRepository)
        {
            _driveRepository       = driveRepository;
            _userAccountRepository = userAccountRepository;

            _random = new Random();
        }
예제 #2
0
 public SmallSyncTask(IApplicationBuilder app)
 {
     _embyClient               = app.ApplicationServices.GetService <IEmbyClient>();
     _embyPluginRepository     = app.ApplicationServices.GetService <IPluginRepository>();
     _embyServerInfoRepository = app.ApplicationServices.GetService <IServerInfoRepository>();
     _configurationRepository  = app.ApplicationServices.GetService <IConfigurationRepository>();
     _embyDriveRepository      = app.ApplicationServices.GetService <IDriveRepository>();
 }
예제 #3
0
 public EmbyService(IEmbyClient embyClient,
                    IPluginRepository embyPluginRepository,
                    IConfigurationRepository configurationRepository,
                    IServerInfoRepository embyServerInfoRepository,
                    IDriveRepository embyDriveRepository)
 {
     _embyClient               = embyClient;
     _embyPluginRepository     = embyPluginRepository;
     _configurationRepository  = configurationRepository;
     _embyServerInfoRepository = embyServerInfoRepository;
     _embyDriveRepository      = embyDriveRepository;
 }
예제 #4
0
 public DriveController(IDriveRepository driveRepository,
                        IUserAccountRepository userAccountRepository,
                        IUserGroupRepository userGroupRepository,
                        IRouteFinder routeFinder,
                        IRouteParser routeParser)
 {
     _driveRepository       = driveRepository;
     _userAccountRepository = userAccountRepository;
     _userGroupRepository   = userGroupRepository;
     _routeFinder           = routeFinder;
     _routeParser           = routeParser;
 }
예제 #5
0
        public DriveDetailViewModel(IDriveRepository repository, IEventAggregator eventAggregator
                                    , IMessageDialogService messageService, IAppLogger appLogger) : base(eventAggregator, messageService, appLogger)

        {
            _repository     = repository;
            NavigationItems = new ObservableCollection <NavigationTreeItemViewModel>();
            //    ArchiveEntities = new ObservableCollection<ArchiveEntityWrapper>();

            _eventAggregator = eventAggregator;
            _allFilesOnDrive = new List <ArchiveEntity>();
            _eventAggregator.GetEvent <AfterCollectionSavedEvent>().Subscribe(AfterCollectionSaved);
            AddArchiveEntityCommand    = new DelegateCommand(OnAddArchiveEntityExecute);
            RemoveArchiveEntityCommand = new DelegateCommand(OnRemoveArchiveEntityExecute,
                                                             OnRemoveArchiveEntityCanExecute);
            CloseSearchDetailViewModelCommand = new DelegateCommand(OnCloseSearchDetailViewExecute);
            SelectedItemChangedCommand        = new DelegateCommand <int?>(OnSelectedItemChangedExecute, OnSelectedItemChangedCanExecute);
            DeleteAllImagesCommand            = new DelegateCommand(OnDeleteAllImagesExecute, OnDeleteAllImagesCanExecute);
        }
 public NavigationMenuViewComponent(IDriveRepository repo)
 {
     repository = repo;
 }
예제 #7
0
파일: GlobalScope.cs 프로젝트: Konlador/psk
 public GlobalScope(IDriveRepository driveRepository)
 {
     Drives = driveRepository;
 }
 public DriveController(IDriveRepository driveRepo)
 {
     this.driveRepo = driveRepo;
 }
예제 #9
0
 public DriveController()
 {
     driveRepository = new DriveRepository();
 }
예제 #10
0
 /// <summary>
 /// Constructor whose purpose is to set private readonly
 /// variable value. It's value is the same as the value
 /// of passed parameter.
 /// </summary>
 /// <param name="driveRepository">
 /// Existing IDriveRepository object.
 /// </param>
 public DriveLogic(IDriveRepository driveRepository)
 {
     _driveRepository = driveRepository;
 }
 public DriveController(IDriveRepository repository)
 {
     this._driverRepository = repository;
 }
예제 #12
0
 public DriveController(IDriveRepository repo)
 {
     repository = repo;
 }
 public CartController(IDriveRepository repo, Cart cartService)
 {
     repository = repo;
     cart       = cartService;
 }
예제 #14
0
 static DriveServices()
 {
     repository = new DriveRepository();
 }
예제 #15
0
 public AdminController(IDriveRepository repo)
 {
     repository = repo;
 }