本文整理汇总了C#中ISettingsService类的典型用法代码示例。如果您正苦于以下问题:C# ISettingsService类的具体用法?C# ISettingsService怎么用?C# ISettingsService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISettingsService类属于命名空间,在下文中一共展示了ISettingsService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ControllerSlaveService
public ControllerSlaveService(
ISettingsService settingsService,
ISchedulerService scheduler,
IDateTimeService dateTimeService,
IOutdoorTemperatureService outdoorTemperatureService,
IOutdoorHumidityService outdoorHumidityService,
IDaylightService daylightService,
IWeatherService weatherService)
{
if (settingsService == null) throw new ArgumentNullException(nameof(settingsService));
if (scheduler == null) throw new ArgumentNullException(nameof(scheduler));
if (dateTimeService == null) throw new ArgumentNullException(nameof(dateTimeService));
if (outdoorTemperatureService == null) throw new ArgumentNullException(nameof(outdoorTemperatureService));
if (outdoorHumidityService == null) throw new ArgumentNullException(nameof(outdoorHumidityService));
if (daylightService == null) throw new ArgumentNullException(nameof(daylightService));
if (weatherService == null) throw new ArgumentNullException(nameof(weatherService));
_dateTimeService = dateTimeService;
_outdoorTemperatureService = outdoorTemperatureService;
_outdoorHumidityService = outdoorHumidityService;
_daylightService = daylightService;
_weatherService = weatherService;
settingsService.CreateSettingsMonitor<ControllerSlaveServiceSettings>(s => Settings = s);
scheduler.RegisterSchedule("ControllerSlavePolling", TimeSpan.FromMinutes(5), PullValues);
}
开发者ID:chkr1011,项目名称:CK.HomeAutomation,代码行数:27,代码来源:ControllerSlaveService.cs
示例2: TimelineEditor
public TimelineEditor(
IControlHostService controlHostService,
ICommandService commandService,
IContextRegistry contextRegistry,
IDocumentRegistry documentRegistry,
IDocumentService documentService,
IPaletteService paletteService,
ISettingsService settingsService)
{
s_schemaLoader = new SchemaLoader();
s_repository.DocumentAdded += repository_DocumentAdded;
s_repository.DocumentRemoved += repository_DocumentRemoved;
paletteService.AddItem(Schema.markerType.Type, "Timelines", this);
paletteService.AddItem(Schema.groupType.Type, "Timelines", this);
paletteService.AddItem(Schema.trackType.Type, "Timelines", this);
paletteService.AddItem(Schema.intervalType.Type, "Timelines", this);
paletteService.AddItem(Schema.keyType.Type, "Timelines", this);
paletteService.AddItem(Schema.timelineRefType.Type, "Timelines", this);
m_contextRegistry = contextRegistry;
m_documentRegistry = documentRegistry;
m_controlHostService = controlHostService;
m_documentService = documentService;
m_settingsService = settingsService;
}
开发者ID:GeertVL,项目名称:ATF,代码行数:26,代码来源:TimelineEditor.cs
示例3: PluginsController
/// <summary>
/// Initializes a new instance of the <see cref="PluginsController" /> class.
/// </summary>
/// <param name="fileSystem">The file system.</param>
/// <param name="pluginsService">The plugins service.</param>
/// <param name="nugetService">The nuget service.</param>
/// <param name="visualStudioService">The visual studio service.</param>
/// <param name="readMeService">The read me service.</param>
/// <param name="settingsService">The settings service.</param>
/// <param name="messageBoxService">The message box service.</param>
/// <param name="dialogService">The dialog service.</param>
/// <param name="formsService">The forms service.</param>
/// <param name="translator">The translator.</param>
public PluginsController(
IFileSystem fileSystem,
IPluginsService pluginsService,
INugetService nugetService,
IVisualStudioService visualStudioService,
IReadMeService readMeService,
ISettingsService settingsService,
IMessageBoxService messageBoxService,
IDialogService dialogService,
IFormsService formsService,
ITranslator<Tuple<DirectoryInfoBase, DirectoryInfoBase>, Plugins> translator)
: base(visualStudioService,
readMeService,
settingsService,
messageBoxService,
dialogService,
formsService)
{
TraceService.WriteLine("PluginsController::Constructor");
this.fileSystem = fileSystem;
this.pluginsService = pluginsService;
this.nugetService = nugetService;
this.translator = translator;
}
开发者ID:CliffCawley,项目名称:NinjaCoderForMvvmCross,代码行数:38,代码来源:PluginsController.cs
示例4: MainViewModel
/// <summary>
/// Initializes a new instance of the MainViewModel class.
/// </summary>
/// <param name="windowService">
/// The window service
/// </param>
/// <param name="addinService">
/// The add-in service
/// </param>
/// <param name="settingsService">
/// The settings service
/// </param>
public MainViewModel(IWindowService windowService, IAddinService addinService, ISettingsService settingsService)
{
this.windowService = windowService;
var projects = settingsService.GetProjects();
var projectModel = projects.FirstOrDefault();
var tt = addinService.TaskTrackers.First();
var qs = tt.GenerateQuerySettings();
if (!projects.Any())
{
projectModel = new ProjectModel("Demo project", tt.Id);
var ss = new SecureString();
ss.AppendChar('H');
ss.AppendChar('e');
ss.AppendChar('l');
ss.AppendChar('l');
ss.AppendChar('o');
var testSettings = new Dictionary<string, SecureString>
{
{ "SomeKey1", ss },
{ "SomeKey2", ss }
};
var projectSettings1 = new SettingsModel(projectModel.InternalUrn, testSettings);
settingsService.SaveProject(projectModel, projectSettings1);
}
var projectSettings2 = settingsService.GetProjectSettings(projectModel);
this.Tasks = new ObservableCollection<ITaskModel>(tt.GetAssignedToUser(projectModel, projectSettings2));
settingsService.SaveProject(projectModel);
}
开发者ID:andycb,项目名称:BugView,代码行数:47,代码来源:MainViewModel.cs
示例5: StatsController
public StatsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicService topicService, IPostService postService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
{
_topicService = topicService;
_postService = postService;
}
开发者ID:kangjh0815,项目名称:test,代码行数:7,代码来源:StatsController.cs
示例6: Initialize
protected override void Initialize(Frame rootFrame, Dictionary<string, Type> views, Dictionary<string, Type> dialogs)
{
base.Initialize(rootFrame, views, dialogs);
_storageService = new StorageService(FileSystem.Current.LocalStorage.Path);
_settingsService = new SettingsService();
_collectionStorageService = new SqliteCollectionStorageService(new SQLitePlatformWinRT());
RegisterInstance<INavigationService>(new NavigationService(rootFrame,views));
RegisterInstance<IEmailService>(new EmailService());
RegisterInstance<IResourceService>(new ResourceService());
RegisterInstance<IEmailService>(new EmailService());
//RegisterInstance<IInstallVoiceSynthesisService>(new InstallVoiceSynthesisService());
RegisterInstance<IScreenService>(new ScreenService());
RegisterInstance<IFontService>(new FontService());
RegisterInstance<IMediaService>(new MediaService());
RegisterInstance<IPopupService>(new PopupService());
RegisterInstance<ICopyPasteService>(new CopyPasteService());
RegisterInstance<ITextToSpeechService>(new TextToSpeechService());
RegisterInstance<IStorageService>(_storageService);
RegisterInstance<ISettingsService>(_settingsService);
RegisterInstance<IXmlService>(new XmlService());
RegisterInstance<ICollectionStorageService>(_collectionStorageService);
InitializeAsync();
}
开发者ID:india-rose,项目名称:xamarin-indiarose,代码行数:27,代码来源:Container.cs
示例7: OptionsPresenter
/// <summary>
/// Initializes a new instance of the <see cref="OptionsPresenter" /> class.
/// </summary>
/// <param name="view">The view.</param>
/// <param name="settingsService">The settings service.</param>
public OptionsPresenter(
IOptionsView view,
ISettingsService settingsService)
{
this.view = view;
this.settingsService = settingsService;
}
开发者ID:slodge,项目名称:NinjaCoderForMvvmCross,代码行数:12,代码来源:OptionsPresenter.cs
示例8: SnippetsController
public SnippetsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService,
IMembershipUserPointsService membershipUserPointsService, ICacheService cacheService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
{
_membershipUserPointsService = membershipUserPointsService;
}
开发者ID:lenwen,项目名称:mvcforum,代码行数:7,代码来源:SnippetsController.cs
示例9: SettingsViewModel
public SettingsViewModel(ISettingsService settingsService, IWindowManager windowManager, Func<BlogSettingsViewModel> blogSettingsCreator)
{
this.settingsService = settingsService;
this.windowManager = windowManager;
this.blogSettingsCreator = blogSettingsCreator;
using (RegistryKey key = Registry.CurrentUser.OpenSubKey("Software").OpenSubKey("Classes"))
{
FileMDBinding = key.GetSubKeyNames().Contains(Constants.DefaultExtensions[0]) &&
!string.IsNullOrEmpty(key.OpenSubKey(Constants.DefaultExtensions[0]).GetValue("").ToString());
FileMarkdownBinding = key.GetSubKeyNames().Contains(Constants.DefaultExtensions[1]) &&
!string.IsNullOrEmpty(key.OpenSubKey(Constants.DefaultExtensions[1]).GetValue("").ToString());
FileMDownBinding = key.GetSubKeyNames().Contains(Constants.DefaultExtensions[2]) &&
!string.IsNullOrEmpty(key.OpenSubKey(Constants.DefaultExtensions[2]).GetValue("").ToString());
FileMKDBinding = key.GetSubKeyNames().Contains(Constants.DefaultExtensions[3]) &&
!string.IsNullOrEmpty(key.OpenSubKey(Constants.DefaultExtensions[3]).GetValue("").ToString());
}
var blogs = settingsService.Get<List<BlogSetting>>("Blogs") ?? new List<BlogSetting>();
Blogs = new ObservableCollection<BlogSetting>(blogs);
}
开发者ID:ronnykarlsson,项目名称:DownmarkerWPF,代码行数:25,代码来源:SettingsViewModel.cs
示例10: ShellForm
public ShellForm(IKernel kernel)
{
Asserter.AssertIsNotNull(kernel, "kernel");
_kernel = kernel;
_applicationService = _kernel.Get<IApplicationService>();
_storageService = _kernel.Get<IStorageService>();
_settingsService = _kernel.Get<ISettingsService>();
_siteService = _kernel.Get<ISiteService>();
_controller = _kernel.Get<ShellController>();
Asserter.AssertIsNotNull(_applicationService, "_applicationService");
Asserter.AssertIsNotNull(_storageService, "_storageService");
Asserter.AssertIsNotNull(_settingsService, "_settingsService");
Asserter.AssertIsNotNull(_siteService, "_siteService");
InitializeComponent();
_siteService.Register(SiteNames.ContentSite, contentPanel);
_siteService.Register(SiteNames.NavigationSite, navigationPanel);
_siteService.Register(SiteNames.ContentActionsSite, contentActionPanel);
SetStyle(ControlStyles.OptimizedDoubleBuffer |
ControlStyles.AllPaintingInWmPaint |
ControlStyles.ResizeRedraw, true);
}
开发者ID:jeffboulanger,项目名称:connectuo,代码行数:26,代码来源:ShellForm.cs
示例11: Window
public Window(ComponentId id, ISettingsService settingsService)
: base(id)
{
if (settingsService == null) throw new ArgumentNullException(nameof(settingsService));
settingsService.CreateSettingsMonitor<ComponentSettings>(Id, s => Settings = s);
}
开发者ID:chkr1011,项目名称:CK.HomeAutomation,代码行数:7,代码来源:Window.cs
示例12: SabNzbdController
public SabNzbdController(ISettingsService<SabNzbdSettingsDto> settingsService, IThirdPartyService api, ILogger logger)
{
SettingsService = settingsService;
Api = api;
Logger = logger;
Settings = SettingsService.GetSettings();
}
开发者ID:NZBDash,项目名称:NZBDash,代码行数:7,代码来源:SabNzbdController.cs
示例13: AreaService
public AreaService(
IComponentService componentService,
IAutomationService automationService,
ISystemEventsService systemEventsService,
ISystemInformationService systemInformationService,
IApiService apiService,
ISettingsService settingsService)
{
if (componentService == null) throw new ArgumentNullException(nameof(componentService));
if (automationService == null) throw new ArgumentNullException(nameof(automationService));
if (systemEventsService == null) throw new ArgumentNullException(nameof(systemEventsService));
if (systemInformationService == null) throw new ArgumentNullException(nameof(systemInformationService));
if (apiService == null) throw new ArgumentNullException(nameof(apiService));
if (settingsService == null) throw new ArgumentNullException(nameof(settingsService));
_componentService = componentService;
_automationService = automationService;
_apiService = apiService;
_settingsService = settingsService;
systemEventsService.StartupCompleted += (s, e) =>
{
systemInformationService.Set("Areas/Count", _areas.GetAll().Count);
};
apiService.ConfigurationRequested += HandleApiConfigurationRequest;
}
开发者ID:chkr1011,项目名称:CK.HomeAutomation,代码行数:27,代码来源:AreaService.cs
示例14: ChocolateyLibDirHelper
public ChocolateyLibDirHelper(IChocolateyService chocolateyService, IFileStorageService fileStorageService, ISettingsService settingsService)
{
_chocolateyService = chocolateyService;
_fileStorageService = fileStorageService;
_settingsService = settingsService;
_chocolateyService.OutputChanged += VersionChangeFinished;
}
开发者ID:jamescurran,项目名称:chocolatey-Explorer,代码行数:7,代码来源:ChocolateyLibDirHelper.cs
示例15: ProjectTemplateTranslator
/// <summary>
/// Initializes a new instance of the <see cref="ProjectTemplateTranslator" /> class.
/// </summary>
/// <param name="settingsService">The settings service.</param>
/// <param name="visualStudioService">The visual studio service.</param>
public ProjectTemplateTranslator(
ISettingsService settingsService,
IVisualStudioService visualStudioService)
{
this.settingsService = settingsService;
this.visualStudioService = visualStudioService;
}
开发者ID:asudbury,项目名称:NinjaCoderForMvvmCross,代码行数:12,代码来源:ProjectTemplateTranslator.cs
示例16: 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
示例17: TestResultsController
public TestResultsController(IUnityContainer container, IRegionManager regionManager, IEventAggregator eventAggregator, ISettingsService settingsService)
{
_container = container;
_regionManager = regionManager;
_eventAggregator = eventAggregator;
_settingsService = settingsService;
}
开发者ID:MGetmanov,项目名称:Selenite,代码行数:7,代码来源:TestResultsController.cs
示例18: TestHumiditySensor
public TestHumiditySensor(ComponentId id, ISettingsService settingsService, TestNumericValueSensorEndpoint endpoint)
: base(id, settingsService, endpoint)
{
if (endpoint == null) throw new ArgumentNullException(nameof(endpoint));
Endpoint = endpoint;
}
开发者ID:chkr1011,项目名称:CK.HomeAutomation,代码行数:7,代码来源:TestHumiditySensor.cs
示例19: AdminBadgeController
/// <summary>
/// Constructor
/// </summary>
/// <param name="unitOfWorkManager"> </param>
/// <param name="membershipService"> </param>
/// <param name="localizationService"></param>
/// <param name="settingsService"> </param>
/// <param name="badgeService"> </param>
/// <param name="loggingService"> </param>
public AdminBadgeController(IBadgeService badgeService, IPostService postService, ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager,
IMembershipService membershipService, ILocalizationService localizationService, ISettingsService settingsService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, settingsService)
{
_badgeService = badgeService;
_postService = postService;
}
开发者ID:molntamas,项目名称:mvcforum,代码行数:16,代码来源:AdminBadgeController.cs
示例20: PackageManager
public PackageManager(IAvailablePackagesService availablePackagesService, IPackageVersionService packageVersionService, IPackageService packageService, IFileStorageService fileStorageService, ICommandExecuter commandExecuter, ISettingsService settingsService, IInstalledPackagesService installedPackagesService)
{
_packageVersionService = packageVersionService;
_packageService = packageService;
_availablePackagesService = availablePackagesService;
_fileStorageService = fileStorageService;
_commandExecuter = commandExecuter;
_settingsService = settingsService;
_installedPackagesService = installedPackagesService;
_packageVersionService.VersionChanged += VersionChangedHandler;
_packageVersionService.RunStarted += PackageVersionServiceStarted;
_availablePackagesService.RunFinshed += PackagesServiceRunFinished;
_installedPackagesService.RunFinshed += PackagesServiceRunFinished;
_packageService.RunFinshed += PackageServiceRunFinished;
_packageService.RunStarted += PackageServiceRunStarted;
_availablePackagesService.RunFailed += PackagesServiceRunFailed;
_installedPackagesService.RunFailed += PackagesServiceRunFailed;
_availablePackagesService.RunStarted += PackagesServiceRunStarted;
_installedPackagesService.RunStarted += PackagesServiceRunStarted;
InitializeComponent();
tabAvailable.ImageIndex = 0;
tabInstalled.ImageIndex = 1;
_installedPackagesService.ListOfDistinctHighestInstalledPackages();
}
开发者ID:jamescurran,项目名称:chocolatey-Explorer,代码行数:26,代码来源:PackageManager.cs
注:本文中的ISettingsService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论