• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IResourceService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: StoreController

 public StoreController(IStoreRepository storeRepository
     ,IResourceService resourceService
     ,IResourceRepository resourceRepo)
 {
     this._storeRepository = storeRepository;
     _resouceService = resourceService;
     _resourceRepo = resourceRepo;
 }
开发者ID:huayumeng,项目名称:ytoo.service,代码行数:8,代码来源:StoreController.cs


示例17: AccountService

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


示例18: PrinterService

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


示例19: BrandController

 public BrandController(IBrandRepository brandRepository
     ,IResourceService resourceService
     ,IResourceRepository resourceRepository)
 {
     this._brandRepository = brandRepository;
     _resourceService = resourceService;
     _resourceRepository = resourceRepository;
 }
开发者ID:huayumeng,项目名称:ytoo.service,代码行数:8,代码来源:BrandController.cs


示例20: AsyncViewModelBase

		public AsyncViewModelBase(INavigationService navigationService, IResourceService resourceService, IDialogService dialogService)
		{
			_NavigationService = navigationService;
			_ResourceService = resourceService;
			_DialogService = dialogService;

			// Register events
			ConnectionError += AsyncViewModelBase_ConnectionError;
		}
开发者ID:Thepagedot,项目名称:Rhome-App,代码行数:9,代码来源:AsyncViewModelBase.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IResponse类代码示例发布时间:2022-05-24
下一篇:
C# IResourceResolver类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap