public AutomationFactory(
            ISchedulerService schedulerService,
            INotificationService notificationService,
            IDateTimeService dateTimeService,
            IDaylightService daylightService,
            IOutdoorTemperatureService outdoorTemperatureService,
            IComponentService componentService,
            ISettingsService settingsService,
            IResourceService resourceService)
        {
            if (schedulerService == null) throw new ArgumentNullException(nameof(schedulerService));
            if (notificationService == null) throw new ArgumentNullException(nameof(notificationService));
            if (dateTimeService == null) throw new ArgumentNullException(nameof(dateTimeService));
            if (daylightService == null) throw new ArgumentNullException(nameof(daylightService));
            if (outdoorTemperatureService == null) throw new ArgumentNullException(nameof(outdoorTemperatureService));
            if (componentService == null) throw new ArgumentNullException(nameof(componentService));
            if (settingsService == null) throw new ArgumentNullException(nameof(settingsService));
            if (resourceService == null) throw new ArgumentNullException(nameof(resourceService));

            _schedulerService = schedulerService;
            _notificationService = notificationService;
            _dateTimeService = dateTimeService;
            _daylightService = daylightService;
            _outdoorTemperatureService = outdoorTemperatureService;
            _componentService = componentService;
            _settingsService = settingsService;
            _resourceService = resourceService;
        }
Esempio n. 2
0
 public ResourceHeaderXmlDialog(string resourceId, IResourceService resSvc)
     : this()
 {
     _resSvc = resSvc;
     _resourceId = resourceId;
     lblResourceId.Text = _resourceId;
 }
Esempio n. 3
0
 public PlayerManager(IDataService dataService, IAuthenticationService accountService, IPlayerService playerService, IDialogService dialogservice, IResourceService resourceService)
 {
     this.m_dataService = dataService;
     this.m_accountService = accountService;
     this.PlayerService = playerService;
     this.m_dialogService = dialogservice;
     this.m_resourceService = resourceService;
     Messenger.Default.Register<MediaStateChangedArgs>(this, args =>
     {
         switch (args.MediaState)
         {
             case MediaState.Opened:
                 OnMediaOpened();
                 break;
             case MediaState.Ended:
                 this.OnMediaEnded();
                 break;
             case MediaState.NextRequested:
                 ExecuteNextTrack();
                 break;
             case MediaState.PreviousRequested:
                 ExecutePreviousTrack();
                 break;
             case MediaState.DownloadCompleted:
                 PrepareNextTrack();
                 break;
         }
     });
 }
        public NotificationService(
            IDateTimeService dateTimeService, 
            IApiService apiService, 
            ISchedulerService schedulerService, 
            ISettingsService settingsService,
            IStorageService storageService,
            IResourceService resourceService)
        {
            if (dateTimeService == null) throw new ArgumentNullException(nameof(dateTimeService));
            if (apiService == null) throw new ArgumentNullException(nameof(apiService));
            if (schedulerService == null) throw new ArgumentNullException(nameof(schedulerService));
            if (settingsService == null) throw new ArgumentNullException(nameof(settingsService));
            if (storageService == null) throw new ArgumentNullException(nameof(storageService));
            if (resourceService == null) throw new ArgumentNullException(nameof(resourceService));

            _dateTimeService = dateTimeService;
            _storageService = storageService;
            _resourceService = resourceService;

            settingsService.CreateSettingsMonitor<NotificationServiceSettings>(s => Settings = s);

            apiService.StatusRequested += HandleApiStatusRequest;

            schedulerService.RegisterSchedule("NotificationCleanup", TimeSpan.FromMinutes(15), Cleanup);
        }
Esempio n. 5
0
 public GameEditor(
     IContextRegistry contextRegistry,
     IDocumentRegistry documentRegistry,            
     IControlHostService controlHostService,
     ICommandService commandService,
     IDocumentService documentService,
     IPaletteService paletteService,
     ISettingsService settingsService,            
     IResourceService resourceService,
     LevelEditorCore.ResourceLister resourceLister,            
     BookmarkLister bookmarkLister
     )
 {
     m_contextRegistry = contextRegistry;
     m_documentRegistry = documentRegistry;
     m_paletteService = paletteService;
     m_settingsService = settingsService;            
     m_documentService = documentService;            
     m_resourceService = resourceService;
     m_resourceLister = resourceLister;            
     m_bookmarkLister = bookmarkLister;
     
     //to-do wire it to to command service
     InputScheme.ActiveControlScheme = new MayaControlScheme();
     ResolveOnLoad = true;
 }
        public SearchResultPageViewModel(IDataService dataService, INavigationService navigationService, IResourceService resourceService, IDialogService dialogService)
        {
            this.m_dataService = dataService;
            this.m_navigationService = navigationService;
            this.m_resourceService = resourceService;
			this.m_dialogservice = dialogService;
        }
Esempio n. 7
0
 public ReferenceCtrl(ISymbolInstanceReferenceLibrary libRef, IResourceService resSvc)
 {
     InitializeComponent();
     _libRef = libRef;
     _resSvc = resSvc;
     TextBoxBinder.BindText(txtResourceId, _libRef, "ResourceId");
 }
 public BasePlaylistableViewModel(IDataService dataService, IAccountService accountService, IDialogService dialogService, IResourceService resourceService)
 {
     this.DataService = dataService;
     this.AccountService = accountService;
     this.DialogService = dialogService;
     this.ResourceService = resourceService;
 }
Esempio n. 9
0
 public BundleController()
 {
     bundleService = new BundleService();
     locationService = new LocationService();
     resourceService = new ResourceService();
     userService = new UserService();
 }
Esempio n. 10
0
 public MainForm(IFeatureService featSvc, IResourceService resSvc)
     : this()
 {
     this.featSvc = featSvc;
     this.resSvc = resSvc;
     localFsPreviewCtrl.Init(featSvc);
 }
Esempio n. 11
0
        public SearchController(IResourceService resourceService, IUserService userService, IProfileService profileService, ISearchService searchService, IStateService stateService, IConversationService conversationService)
            : base(resourceService, userService, profileService, stateService, conversationService)
        {
            _searchService = searchService;
            ResourceService = resourceService;

        }
Esempio n. 12
0
 public PlayerManager(IDataService dataService, IAccountService accountService, IPlayerService playerService, IDialogService dialogservice, IResourceService resourceService)
 {
     this.m_dataService = dataService;
     this.m_accountService = accountService;
     this.PlayerService = playerService;
     this.m_dialogService = dialogservice;
     this.m_resourceService = resourceService;
     Messenger.Default.Register<MediaOpenedMessage>(this, message =>
     {
         this.OnMediaOpened();
     });
     Messenger.Default.Register<MediaEndedMessage>(this, message =>
     {
         this.OnMediaEnded();
     });
     Messenger.Default.Register<MediaNextPressedMessage>(this, message =>
     {
         if (this.CanExecuteNextTrack())
         {
             this.ExecuteNextTrack();
         }
     });
     Messenger.Default.Register<MediaPreviousPressedMessage>(this, message =>
     {
         if (this.CanExecutePreviousTrack())
         {
             this.ExecutePreviousTrack();
         }
     });
 }
 public ResourceButtonWidgetViewModel(Widget model, ICacheService cacheService, IApplicationState applicationState, IResourceService resourceService)
     : base(model)
 {
     _cacheService = cacheService;
     _applicationState = applicationState;
     _resourceService = resourceService;
     ItemClickedCommand = new CaptionCommand<ResourceButtonWidgetViewModel>("", OnItemClickExecute);
 }
Esempio n. 14
0
 public AccountController(IAccountService accountService, IMessageService messageService, IResourceService resourceService)
 {
     this.accountService = accountService;
     this.messageService = messageService;
     this.resourceService = resourceService;
     signInCommand = new DelegateCommand(SignIn, CanSignIn);
     signOutCommand = new AsyncDelegateCommand(SignOutAsync);
 }
Esempio n. 15
0
        public ResourceServiceTest()
        {
            _repository = new Mock<IResourceRepository>();
            _service = new ResourceService(_repository.Object);

            _resource.CreateTime = _prepareTime;
            _resource.LastUpdateTime = _prepareTime;
        }
 public ResourceGridWidgetViewModel(Widget model, IApplicationState applicationState,
     IResourceService resourceService, IUserService userService, ICacheService cacheService)
     : base(model, applicationState)
 {
     _applicationState = applicationState;
     _cacheService = cacheService;
     ResourceSelectorViewModel = new ResourceSelectorViewModel(applicationState, resourceService, userService, cacheService);
 }
Esempio n. 17
0
 public UserService(IRepository repository, INotificationService notificationService,
     IResourceService resourceService, IPasswordEncryptor passwordEncryptor)
 {
     this.repository = repository;
     this.resourceService = resourceService;
     this.notificationService = notificationService;
     this.passwordEncryptor = passwordEncryptor;
 }
Esempio n. 18
0
 public StoreController(IStoreRepository storeRepository
     ,IResourceService resourceService
     ,IResourceRepository resourceRepo)
 {
     this._storeRepository = storeRepository;
     _resouceService = resourceService;
     _resourceRepo = resourceRepo;
 }
Esempio n. 19
0
 public BrandController(IBrandRepository brandRepository
     ,IResourceService resourceService
     ,IResourceRepository resourceRepository)
 {
     this._brandRepository = brandRepository;
     _resourceService = resourceService;
     _resourceRepository = resourceRepository;
 }
Esempio n. 20
0
 public PrinterService(IPrinterDao printerDao, IResourceService resourceService, ISettingService settingService,
     ICacheService cacheService, IExpressionService expressionService, ILogService logService)
 {
     _printerDao = printerDao;
     _cacheService = cacheService;
     _logService = logService;
     _ticketFormatter = new TicketFormatter(expressionService, settingService);
 }
Esempio n. 21
0
 public AccountService(IResourceService resourceService)
 {
     this.m_resourceService = resourceService;
     this.m_strUnauthorizedAccessExceptionMessage = this.m_resourceService.GetString(
         "UnauthorizedAccessExceptionMessage", "The user name or password is incorrect");
     this.m_strEncryptedLoginException = this.m_resourceService.GetString(
         "EncryptedLoginException", "There is a login error. Please deactivate the encrypted login.");
 }
Esempio n. 22
0
 public SampleGenerator(IProfileService profileService, IUserService userService, IPhotosService photosService, IConversationService conversationService, IVisitService visitService, IResourceService resourceService)
 {
     _profileService = profileService;
     _userService = userService;
     _photosService = photosService;
     _conversationService = conversationService;
     _visitService = visitService;
     _resourceService = resourceService;
 }
 public ResourceController(IUserService userService, 
     IResourceService resourceService, 
     ILogService logService,
     IMapperService mapper)
     : base(userService, logService)
 {
     _mapper = mapper;
     _resourceService = resourceService;
 }
Esempio n. 24
0
		public HostSettingsPageViewModel(IDataService dataService, IHostsettingsService hostSettingsService, IAccountService accountService, INavigationService navigationService, IResourceService resourceService)
        {
            this.m_dataService = dataService;
			this.m_accountService = accountService;
            this.m_navigationService = navigationService;
            this.m_hostSettingsService = hostSettingsService;
			this.m_resourceService = resourceService;
            this.ServiceUrl = this.m_hostSettingsService.ServiceUrl;
        }
Esempio n. 25
0
		public AsyncViewModelBase(INavigationService navigationService, IResourceService resourceService, IDialogService dialogService)
		{
			_NavigationService = navigationService;
			_ResourceService = resourceService;
			_DialogService = dialogService;

			// Register events
			ConnectionError += AsyncViewModelBase_ConnectionError;
		}
Esempio n. 26
0
 public ApiController(IResourceService resourceService, IUserService userService, IProfileService profileService, 
     IConversationService conversationService, IStateService stateService, IUtilityService utilityService,
     ISearchService searchService, IPhotosService photoService
     )
     : base(resourceService, userService, profileService, stateService, conversationService)
 {
     _searchService = searchService;
     _photoService = photoService;
     _utilityService = utilityService;
 }
 public CustomerDataService(IPointService pointService, IUserService userService, ILikeService likeService, ICustomerRepository customerRepository, IOutSiteCustomerRepository outSiteCustomerRepository, IVerifyCodeRepository verifyCodeRepository, IResourceService resourceService)
 {
     _likeService = likeService;
     _customerRepository = customerRepository;
     _outSiteCustomerRepository = outSiteCustomerRepository;
     _verifyCodeRepository = verifyCodeRepository;
     _resourceService = resourceService;
     _userService = userService;
     _pointService = pointService;
 }
Esempio n. 28
0
 public BannerController(IBannerRepository bannerRepo,
     IPromotionRepository proRepo,
     IResourceRepository resourceRepo,
     IResourceService resourceSer)
 {
     _bannerRepo = bannerRepo;
     _proRepo = proRepo;
     _resourceRepo = resourceRepo;
     _resourceSer = resourceSer;
 }
Esempio n. 29
0
 public CustomerController(ICustomerRepository customerRepository
     ,IResourceService resourceService
     ,IResourceRepository resourceRepository
     ,ICardRepository cardRepo)
 {
     _customerRepository = customerRepository;
     _resourceService = resourceService;
     _resourceRepository = resourceRepository;
     _cardRepo = cardRepo;
 }
Esempio n. 30
0
 public LegendControlPresenter(Legend legend, RuntimeMap map)
 {
     _legend = legend;
     _map = map;
     _provider = _map.CurrentConnection;
     _resSvc = _provider.ResourceService;
     InitInitialSelectabilityStates();
     _selectableIcon = Properties.Resources.lc_select;
     _unselectableIcon = Properties.Resources.lc_unselect;
 }
Esempio n. 31
0
 public SystemDirectoriesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService <SystemDirectory> resourceService)
     : base(options, loggerFactory, resourceService)
 {
 }
 public TodoItemsCustomController(
     IJsonApiOptions options,
     IResourceService <TodoItem> resourceService)
     : base(options, resourceService)
 {
 }
 public ToothbrushesController(IJsonApiOptions options, ILoggerFactory loggerFactory,
                               IResourceService <Toothbrush> resourceService)
     : base(options, loggerFactory, resourceService)
 {
 }
 public ResourcesController(IResourceService service, ITelemetryCollector telemetryCollector)
 {
     _service            = service ?? throw new ArgumentNullException(nameof(service));
     _telemetryCollector = telemetryCollector ?? throw new ArgumentNullException(nameof(telemetryCollector));
 }
Esempio n. 35
0
 public ArticlesController(
     IJsonApiOptions jsonApiOptions,
     IResourceService <Article> resourceService)
     : base(jsonApiOptions, resourceService)
 {
 }
Esempio n. 36
0
 public ManagerViewPresenter(IManagerView managerView, IResourceService service)
 {
     _managerView     = managerView;
     _resourceService = service;
     Initialize();
 }
Esempio n. 37
0
 public ResourceController(IResourceService service)
 {
     this.service = service;
 }
 public CustomJsonApiController(
     IJsonApiOptions options,
     IResourceService <T, int> resourceService)
     : base(options, resourceService)
 {
 }
Esempio n. 39
0
 public ResourceController(IResourceService packageService)
 {
     this.packageService = packageService;
 }
Esempio n. 40
0
 public PageViewResult(string path, IResourceService <Website, IReadOnlyWebsite> websiteService)
 {
     this.path           = path;
     this.websiteService = websiteService;
 }
Esempio n. 41
0
 /// <summary>
 /// Initialize TrolleyTotal controller and inject resource service.
 /// </summary>
 /// <param name="resourceService">
 /// Resource service that helps handle dependent resource logics.
 /// </param>
 public TrolleyTotalController(IResourceService resourceService)
 {
     this.resourceService = resourceService;
 }
 public ArticlesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService <Article> resourceService)
     : base(options, loggerFactory, resourceService)
 {
 }
Esempio n. 43
0
 public CategoryService(ICategoryRepository categoryRepository, ICategoriesNewsRepository categoriesNewsRepository, ICategoryTranslationRepository categoryTranslationRepository,
                        IResourceService <SharedResource> sharedResourceService, IResourceService <GhmWebsiteResource> resourceService,
                        IMenuItemRepository menuItemRepository)
 {
     _categoryRepository            = categoryRepository;
     _categoriesNewsRepository      = categoriesNewsRepository;
     _categoryTranslationRepository = categoryTranslationRepository;
     _sharedResourceService         = sharedResourceService;
     _resourceService    = resourceService;
     _menuItemRepository = menuItemRepository;
 }
Esempio n. 44
0
 public StarsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService <Star> resourceService)
     : base(options, loggerFactory, resourceService)
 {
 }
 public DeletePageCommandHandler(IPageRepository pageRepository, IUnitOfWork uow,
                                 IResourceService <SharedResource> sharedResourceService, IResourceService <CoreResource> resourceService,
                                 IRolePageRepository rolePageRepository)
 {
     _uow                   = uow;
     _pageRepository        = pageRepository;
     _rolePageRepository    = rolePageRepository;
     _sharedResourceService = sharedResourceService;
     _resourceService       = resourceService;
 }
Esempio n. 46
0
 public AccountController(IAccountService accountService, IMessageService messageService, IResourceService resourceService)
 {
     this.accountService  = accountService;
     this.messageService  = messageService;
     this.resourceService = resourceService;
     signInCommand        = new DelegateCommand(SignIn, CanSignIn);
     signOutCommand       = new AsyncDelegateCommand(SignOutAsync);
 }
Esempio n. 47
0
        public ResourceSearchViewModel(IApplicationState applicationState, ICacheService cacheService, IResourceService resourceService)
        {
            _updateTimer          = new Timer(500);
            _updateTimer.Elapsed += UpdateTimerElapsed;

            _applicationState = applicationState;
            _cacheService     = cacheService;
            _resourceService  = resourceService;

            FoundResources = new ObservableCollection <ResourceSearchResultViewModel>();

            SelectResourceCommand = new CaptionCommand <string>("", OnSelectResource, CanSelectResource);
            EditResourceCommand   = new CaptionCommand <string>("", OnEditResource, CanEditResource);
            CreateResourceCommand = new CaptionCommand <string>("", OnCreateResource, CanCreateResource);
            DisplayAccountCommand = new CaptionCommand <string>(Resources.AccountDetails.Replace(" ", "\r"), OnDisplayAccount, CanDisplayAccount);
            RemoveResourceCommand = new CaptionCommand <string>("", OnRemoveResource, CanRemoveResource);
        }
 public TodoItemsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService <TodoItem> resourceService)
     : base(options, loggerFactory, resourceService)
 {
 }
Esempio n. 49
0
 public BaseJsonApiController(
     IJsonApiContext jsonApiContext,
     IResourceService <T, int> resourceService
     ) : base(jsonApiContext, resourceService)
 {
 }
Esempio n. 50
0
 public GiftCertificatesController(IJsonApiOptions options, ILoggerFactory loggerFactory,
                                   IResourceService <GiftCertificate> resourceService)
     : base(options, loggerFactory, resourceService)
 {
 }
Esempio n. 51
0
 public NotesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService <Note> service)
     : base(options, loggerFactory, service)
 {
 }
Esempio n. 52
0
 public ResourceController(IResourceService resourceService)
 {
     _resourceService = resourceService;
 }
Esempio n. 53
0
 public CiviliansController(IJsonApiOptions options, ILoggerFactory loggerFactory,
                            IResourceService <Civilian> resourceService)
     : base(options, loggerFactory, resourceService)
 {
 }
 protected KatushaApiController(IResourceService resourceService, IUserService userService, IProfileService profileService, IStateService stateService, IConversationService conversationService)
     : base(resourceService, userService, profileService, stateService, conversationService)
 {
 }
 public VillageFacade(IVillageService villageService, IResourceService resourceService, IAdventureService adventureService)
 {
     this.villageService   = villageService;
     this.resourceService  = resourceService;
     this.adventureService = adventureService;
 }
 public AuditEntriesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService <AuditEntry> resourceService)
     : base(options, loggerFactory, resourceService)
 {
 }
Esempio n. 57
0
 /// <summary>
 /// Initializes global static references to MEF components</summary>
 /// <param name="container">Initialized MEF composition container</param>
 public static void InitializeComponents(CompositionContainer container)
 {
     ResourceService = container.GetExportedValue <IResourceService>();
     MEFContainer    = container;
 }
Esempio n. 58
0
 public PostsController(IJsonApiContext jsonApiContext, IResourceService <Post, int> resourceService, ILoggerFactory loggerFactory) : base(jsonApiContext, resourceService, loggerFactory)
 {
 }
 public ProductFamiliesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService <ProductFamily> resourceService)
     : base(options, loggerFactory, resourceService)
 {
 }
Esempio n. 60
0
 public ResourceManagerController(IResourceService resourceService, IMapper mapper)
 {
     this.resourceService = resourceService;
     this.mapper          = mapper;
 }