本文整理汇总了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;
}
示例2: ResourceHeaderXmlDialog
public ResourceHeaderXmlDialog(string resourceId, IResourceService resSvc)
: this()
{
_resSvc = resSvc;
_resourceId = resourceId;
lblResourceId.Text = _resourceId;
}
示例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;
}
示例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;
}
示例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;
}
示例6: BasePlaylistableViewModel
public BasePlaylistableViewModel(IDataService dataService, IAccountService accountService, IDialogService dialogService, IResourceService resourceService)
{
this.DataService = dataService;
this.AccountService = accountService;
this.DialogService = dialogService;
this.ResourceService = resourceService;
}
示例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);
}
示例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();
}
});
}
示例9: ReferenceCtrl
public ReferenceCtrl(ISymbolInstanceReferenceLibrary libRef, IResourceService resSvc)
{
InitializeComponent();
_libRef = libRef;
_resSvc = resSvc;
TextBoxBinder.BindText(txtResourceId, _libRef, "ResourceId");
}
示例10: MainForm
public MainForm(IFeatureService featSvc, IResourceService resSvc)
: this()
{
this.featSvc = featSvc;
this.resSvc = resSvc;
localFsPreviewCtrl.Init(featSvc);
}
示例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;
}
});
}
示例12: UserService
public UserService(IRepository repository, INotificationService notificationService,
IResourceService resourceService, IPasswordEncryptor passwordEncryptor)
{
this.repository = repository;
this.resourceService = resourceService;
this.notificationService = notificationService;
this.passwordEncryptor = passwordEncryptor;
}
示例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);
}
示例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);
}
示例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);
}