当前位置: 首页>>代码示例>>C#>>正文


C# IResourceService类代码示例

本文整理汇总了C#中IResourceService的典型用法代码示例。如果您正苦于以下问题:C# IResourceService类的具体用法?C# IResourceService怎么用?C# IResourceService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IResourceService类属于命名空间,在下文中一共展示了IResourceService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AutomationFactory

        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;
        }
开发者ID:chkr1011,项目名称:CK.HomeAutomation,代码行数:28,代码来源:AutomationFactory.cs

示例2: ResourceHeaderXmlDialog

 public ResourceHeaderXmlDialog(string resourceId, IResourceService resSvc)
     : this()
 {
     _resSvc = resSvc;
     _resourceId = resourceId;
     lblResourceId.Text = _resourceId;
 }
开发者ID:kanbang,项目名称:Colt,代码行数:7,代码来源:ResourceHeaderXmlDialog.cs

示例3: SearchResultPageViewModel

        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;
        }
开发者ID:uwe-e,项目名称:BSE.Tunes,代码行数:7,代码来源:SearchResultPageViewModel.cs

示例4: SearchController

        public SearchController(IResourceService resourceService, IUserService userService, IProfileService profileService, ISearchService searchService, IStateService stateService, IConversationService conversationService)
            : base(resourceService, userService, profileService, stateService, conversationService)
        {
            _searchService = searchService;
            ResourceService = resourceService;

        }
开发者ID:ramazanaktolu,项目名称:MS.Katusha,代码行数:7,代码来源:SearchController.cs

示例5: GameEditor

 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;
 }
开发者ID:calciferol,项目名称:LevelEditor,代码行数:26,代码来源:GameEditor.cs

示例6: BasePlaylistableViewModel

 public BasePlaylistableViewModel(IDataService dataService, IAccountService accountService, IDialogService dialogService, IResourceService resourceService)
 {
     this.DataService = dataService;
     this.AccountService = accountService;
     this.DialogService = dialogService;
     this.ResourceService = resourceService;
 }
开发者ID:uwe-e,项目名称:BSE.Tunes,代码行数:7,代码来源:BasePlaylistableViewModel.cs

示例7: NotificationService

        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);
        }
开发者ID:chkr1011,项目名称:CK.HomeAutomation,代码行数:25,代码来源:NotificationService.cs

示例8: PlayerManager

 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();
         }
     });
 }
开发者ID:uwe-e,项目名称:BSE.Tunes,代码行数:30,代码来源:PlayerManager.cs

示例9: ReferenceCtrl

 public ReferenceCtrl(ISymbolInstanceReferenceLibrary libRef, IResourceService resSvc)
 {
     InitializeComponent();
     _libRef = libRef;
     _resSvc = resSvc;
     TextBoxBinder.BindText(txtResourceId, _libRef, "ResourceId");
 }
开发者ID:kanbang,项目名称:Colt,代码行数:7,代码来源:ReferenceCtrl.cs

示例10: MainForm

 public MainForm(IFeatureService featSvc, IResourceService resSvc)
     : this()
 {
     this.featSvc = featSvc;
     this.resSvc = resSvc;
     localFsPreviewCtrl.Init(featSvc);
 }
开发者ID:kanbang,项目名称:Colt,代码行数:7,代码来源:MainForm.cs

示例11: PlayerManager

 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;
         }
     });
 }
开发者ID:uwe-e,项目名称:BSE.Tunes,代码行数:29,代码来源:PlayerManager.cs

示例12: UserService

 public UserService(IRepository repository, INotificationService notificationService,
     IResourceService resourceService, IPasswordEncryptor passwordEncryptor)
 {
     this.repository = repository;
     this.resourceService = resourceService;
     this.notificationService = notificationService;
     this.passwordEncryptor = passwordEncryptor;
 }
开发者ID:hellangle,项目名称:NewCenturyLogistic,代码行数:8,代码来源:UserService.cs

示例13: ResourceGridWidgetViewModel

 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);
 }
开发者ID:neapolis,项目名称:SambaPOS-3,代码行数:8,代码来源:ResourceGridWidgetViewModel.cs

示例14: ResourceButtonWidgetViewModel

 public ResourceButtonWidgetViewModel(Widget model, ICacheService cacheService, IApplicationState applicationState, IResourceService resourceService)
     : base(model)
 {
     _cacheService = cacheService;
     _applicationState = applicationState;
     _resourceService = resourceService;
     ItemClickedCommand = new CaptionCommand<ResourceButtonWidgetViewModel>("", OnItemClickExecute);
 }
开发者ID:yemreguney,项目名称:SambaPOS-3,代码行数:8,代码来源:ResourceButtonWidgetViewModel.cs

示例15: AccountController

 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);
 }
开发者ID:jbe2277,项目名称:waf,代码行数:8,代码来源:AccountController.cs


注:本文中的IResourceService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。