本文整理汇总了C#中IConfig.GetConfigurationSettings方法的典型用法代码示例。如果您正苦于以下问题:C# IConfig.GetConfigurationSettings方法的具体用法?C# IConfig.GetConfigurationSettings怎么用?C# IConfig.GetConfigurationSettings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IConfig
的用法示例。
在下文中一共展示了IConfig.GetConfigurationSettings方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TransmissionNetDownloader
public TransmissionNetDownloader(IConfig config)
{
var settings = config.GetConfigurationSettings();
string url = settings.TransmissionUrl;
transmission = new TransmissionRPC(new Uri(url));
baseDownloadDir = settings.BaseDownloadDir;
}
示例2: EMailNotifier
public EMailNotifier(IConfig config)
{
settings = config.GetConfigurationSettings();
smtpServer = settings.SMTPServer;
smtpUser = settings.SMTPUser;
smtpPassword = settings.SMTPPassword;
from = settings.From;
to = settings.To;
subject = settings.Subject;
}
示例3: ShowRssNewShowProvider
public ShowRssNewShowProvider(IConfig config)
{
var settings = config.GetConfigurationSettings();
feedUrl = settings.FeedUrl;
hoursOffset = Convert.ToInt32(settings.HoursOffset);
}
示例4: LegendasTvSubtitler
public LegendasTvSubtitler(IConfig config)
{
var settings = config.GetConfigurationSettings();
userName = settings.UserName;
password = settings.Password;
}
示例5: OSDBNetSubtitler
public OSDBNetSubtitler(IConfig config)
{
var settings = config.GetConfigurationSettings();
userAgent = settings.UserAgent;
languages = ((string)settings.Languages).Split(',');
}