本文整理汇总了C#中IConfigService类的典型用法代码示例。如果您正苦于以下问题:C# IConfigService类的具体用法?C# IConfigService怎么用?C# IConfigService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IConfigService类属于命名空间,在下文中一共展示了IConfigService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
}
示例2: LogicService
public LogicService(IProtocolService protocolService, IConfigService configService)
{
_protocolService = protocolService;
_configService = configService;
_queryTimmer.Interval = _configService.ConfigInfos.UpdateRate;
}
示例3: NzbgetClient
public NzbgetClient(IConfigService configService, IHttpProvider httpProvider, IParsingService parsingService, Logger logger)
{
_configService = configService;
_httpProvider = httpProvider;
_parsingService = parsingService;
_logger = logger;
}
示例4: frmMain
public frmMain(IDocumentService documentService, IConfigService configService)
{
this.documentService = documentService;
this.configService = configService;
InitializeComponent();
}
示例5: RedownloadFailedDownloadService
public RedownloadFailedDownloadService(IConfigService configService, IEpisodeService episodeService, ICommandExecutor commandExecutor, Logger logger)
{
_configService = configService;
_episodeService = episodeService;
_commandExecutor = commandExecutor;
_logger = logger;
}
示例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");
}
示例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);
}
示例8: PneumaticClient
public PneumaticClient(IConfigService configService, IHttpProvider httpProvider,
IDiskProvider diskProvider)
{
_configService = configService;
_httpProvider = httpProvider;
_diskProvider = diskProvider;
}
示例9: DiskSpaceService
public DiskSpaceService(ISeriesService seriesService, IConfigService configService, IDiskProvider diskProvider, Logger logger)
{
_seriesService = seriesService;
_configService = configService;
_diskProvider = diskProvider;
_logger = logger;
}
示例10: UploadController
/// <summary>
/// 构造函数
/// </summary>
public UploadController(ILogger logger, IConfigService configService, IMediaService mediaService)
{
_logger = logger;
_configService = configService;
_mediaService = mediaService;
saveRootPath = _configService.GetByKey<string>("UploadRootDir", "UploadFiles");
}
示例11: AccountController
public AccountController(IConsultantContext consultantContext, IConsultantDataServiceClientFactory consultantServiceFactory, IConfigService configService, IEnvironmentConfig environmentConfig, IAppSettings appSettings)
{
_consultantContext = consultantContext;
_consultantServiceFactory = consultantServiceFactory;
_configService = configService;
_environmentConfig = environmentConfig;
_appSettings = appSettings;
}
示例12: ConnectSettingViewModel
public ConnectSettingViewModel(IConfigService configService)
{
_configService = configService;
ApplyCommand = new DelegateCommand(ApplyExecuted);
Uri = PanelNames.ConnectSettingPanel;
Name = "连接设置";
InitConfig();
}
示例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);
}
示例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);
}
示例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");
}