本文整理汇总了C#中IConfigService类的典型用法代码示例。如果您正苦于以下问题:C# IConfigService类的具体用法?C# IConfigService怎么用?C# IConfigService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IConfigService类属于命名空间,在下文中一共展示了IConfigService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: AddBookingViewModel
//====================================================================================================
public AddBookingViewModel(IMessageBoxService mboxService, IConfigService configService,
IParentVm parent, Booking model)
{
_parent = parent;
_mboxService = mboxService;
_configService = configService;
//Get Configuration
AvailableDurations = _configService.GetAvailableDurations();
//Set Commands
SubmitCommand = new ActionCommand(OnSubmit, _=>_isFormValid);
CancelCommand = new ActionCommand(OnCancel);
//Set up the screen for Add or Display.
if (model.Id == -1)
{
Model = model;
Caption = "Add New Booking";
IsAddMode = true;
}
else
{
Model = model;
Caption = "Existing Booking";
IsAddMode = false;
}
}
开发者ID:stefanidi,项目名称:NineITBookingAppByRomanStefanidi,代码行数:29,代码来源:BookingViewModel.cs
示例2: LogicService
public LogicService(IProtocolService protocolService, IConfigService configService)
{
_protocolService = protocolService;
_configService = configService;
_queryTimmer.Interval = _configService.ConfigInfos.UpdateRate;
}
开发者ID:hazelor,项目名称:Applications.ComMonitor,代码行数:7,代码来源:LogicService.cs
示例3: NzbgetClient
public NzbgetClient(IConfigService configService, IHttpProvider httpProvider, IParsingService parsingService, Logger logger)
{
_configService = configService;
_httpProvider = httpProvider;
_parsingService = parsingService;
_logger = logger;
}
开发者ID:peterlandry,项目名称:NzbDrone,代码行数:7,代码来源:NzbgetClient.cs
示例4: frmMain
public frmMain(IDocumentService documentService, IConfigService configService)
{
this.documentService = documentService;
this.configService = configService;
InitializeComponent();
}
开发者ID:basmith,项目名称:fakepad,代码行数:7,代码来源:frmMain.cs
示例5: RedownloadFailedDownloadService
public RedownloadFailedDownloadService(IConfigService configService, IEpisodeService episodeService, ICommandExecutor commandExecutor, Logger logger)
{
_configService = configService;
_episodeService = episodeService;
_commandExecutor = commandExecutor;
_logger = logger;
}
开发者ID:Kiljoymccoy,项目名称:NzbDrone,代码行数:7,代码来源:RedownloadFailedDownloadService.cs
示例6: LoadCustom
private void LoadCustom() //for user's custom settings
{
conService = LifetimeService.Instance.Container.Resolve<IConfigService>();
conService.LoadConfig();//load new settings
AllAppSettings = conService.AppSettings;
//tempfolder.Text = conService.AppSettings.Get("tempfolder");
}
开发者ID:BlueSkyStatistics,项目名称:BlueSkyRepository,代码行数:7,代码来源:CustomSettingsWindow.xaml.cs
示例7: LoginViewModel
/// <summary>
/// Initializes a new instance of the LoginViewModel class.
/// </summary>
public LoginViewModel(IConfigService configService, ConfigViewModel configViewModel)
{
_configService = configService;
_configViewModel = configViewModel;
LoginSubmit = new RelayCommand<object>(LoginSubmitAction);
HotStartCommand = new RelayCommand(HotStartAction);
}
开发者ID:SeptemberWind,项目名称:ProductManager-WPF,代码行数:10,代码来源:LoginViewModel.cs
示例8: PneumaticClient
public PneumaticClient(IConfigService configService, IHttpProvider httpProvider,
IDiskProvider diskProvider)
{
_configService = configService;
_httpProvider = httpProvider;
_diskProvider = diskProvider;
}
开发者ID:peterlandry,项目名称:NzbDrone,代码行数:7,代码来源:PneumaticClient.cs
示例9: DiskSpaceService
public DiskSpaceService(ISeriesService seriesService, IConfigService configService, IDiskProvider diskProvider, Logger logger)
{
_seriesService = seriesService;
_configService = configService;
_diskProvider = diskProvider;
_logger = logger;
}
开发者ID:nnic,项目名称:Sonarr,代码行数:7,代码来源:DiskSpaceService.cs
示例10: UploadController
/// <summary>
/// 构造函数
/// </summary>
public UploadController(ILogger logger, IConfigService configService, IMediaService mediaService)
{
_logger = logger;
_configService = configService;
_mediaService = mediaService;
saveRootPath = _configService.GetByKey<string>("UploadRootDir", "UploadFiles");
}
开发者ID:hhahh2011,项目名称:CH.Spartan,代码行数:10,代码来源:UploadController.cs
示例11: AccountController
public AccountController(IConsultantContext consultantContext, IConsultantDataServiceClientFactory consultantServiceFactory, IConfigService configService, IEnvironmentConfig environmentConfig, IAppSettings appSettings)
{
_consultantContext = consultantContext;
_consultantServiceFactory = consultantServiceFactory;
_configService = configService;
_environmentConfig = environmentConfig;
_appSettings = appSettings;
}
开发者ID:Dnigor,项目名称:mycnew,代码行数:8,代码来源:AccountController.cs
示例12: ConnectSettingViewModel
public ConnectSettingViewModel(IConfigService configService)
{
_configService = configService;
ApplyCommand = new DelegateCommand(ApplyExecuted);
Uri = PanelNames.ConnectSettingPanel;
Name = "连接设置";
InitConfig();
}
开发者ID:hazelor,项目名称:Applications.ComMonitor,代码行数:8,代码来源:ConnectSettingViewModel.cs
示例13: SafeBlockProvider
public SafeBlockProvider(IConfigService configService, ILogger logger)
{
var exceptionHandlePolicies = configService.Get<ExceptionHandlePolicy>("ExceptionHandlePolicy");
this.logger = logger;
this.retryCount = configService.Get<int>("ExceptionPolicy", "RetryCount");
this.exceptionPolicies = new Dictionary<string, ExceptionPolicy>();
this.Load(exceptionHandlePolicies);
}
开发者ID:krishnarajv,项目名称:Code,代码行数:8,代码来源:SafeBlockProvider.cs
示例14: DefaultCacheService
/// <summary>
/// 初始化 DefaultCacheService 类的新实例。
/// </summary>
/// <param name="configService"></param>
public DefaultCacheService(IConfigService configService)
{
this.configService = configService;
this.cacheFactory = new CacheFactory(configService);
this.configService.ConfigFileChanged += new ConfigFileChangedEventHandler(configService_ConfigFileChanged);
}
开发者ID:Kjubo,项目名称:xms.core,代码行数:12,代码来源:DefaultCacheService_bak.cs
示例15: InstructionReceiveService
public InstructionReceiveService(string clientId)
{
_clientId = clientId;
_logger = CdevContainer.Ins.Resolve<ILogger>();
_configService = CdevContainer.Ins.Resolve<IConfigService>();
_name = _configService.GetByKey("InstructionActiveMQName");
_uri = _configService.GetByKey("InstructionActiveMQUri");
}
开发者ID:hhahh2011,项目名称:CH.Spartan,代码行数:8,代码来源:InstructionService.cs
示例16: DeleteBadMediaCovers
public DeleteBadMediaCovers(ISeriesService seriesService, IMetadataFileService metadataFileService, IDiskProvider diskProvider, IConfigService configService, Logger logger)
{
_seriesService = seriesService;
_metadataFileService = metadataFileService;
_diskProvider = diskProvider;
_configService = configService;
_logger = logger;
}
开发者ID:mike-tesch,项目名称:Sonarr,代码行数:8,代码来源:DeleteBadMediaCovers.cs
示例17: EnableAuthInNancy
public EnableAuthInNancy(IAuthenticationService authenticationService,
IConfigService configService,
IConfigFileProvider configFileProvider)
{
_authenticationService = authenticationService;
_configService = configService;
_configFileProvider = configFileProvider;
}
开发者ID:drewfreyling,项目名称:NzbDrone,代码行数:8,代码来源:EnableAuthInNancy.cs
示例18: ProxyCheck
public ProxyCheck(ISonarrCloudRequestBuilder cloudRequestBuilder, IConfigService configService, IHttpClient client, Logger logger)
{
_configService = configService;
_client = client;
_logger = logger;
_cloudRequestBuilder = cloudRequestBuilder.Services;
}
开发者ID:mike-tesch,项目名称:Sonarr,代码行数:8,代码来源:ProxyCheck.cs
示例19: MediaFileAttributeService
public MediaFileAttributeService(IConfigService configService,
IDiskProvider diskProvider,
Logger logger)
{
_configService = configService;
_diskProvider = diskProvider;
_logger = logger;
}
开发者ID:mike-tesch,项目名称:Sonarr,代码行数:8,代码来源:MediaFileAttributeService.cs
示例20: MapSettingViewModel
public MapSettingViewModel(IConfigService configService)
{
_configService = configService;
Uri = PanelNames.MapSettingPanel;
Name = "地图设置";
ApplyCommand = new DelegateCommand(ApplyExecuted);
ChangeBackCommand = new DelegateCommand<string>(ChangeBackExecuted);
}
开发者ID:hazelor,项目名称:Applications.ComMonitor,代码行数:8,代码来源:MapSettingViewModel.cs
注:本文中的IConfigService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论