コード例 #1
0
ファイル: DownloaderSettings.cs プロジェクト: tparvi/tomato
 /// <summary>
 /// Initializes a new instance of the <see cref="DownloaderSettings"/> class.
 /// </summary>
 /// <param name="applicationSettings">
 /// The application settings.
 /// </param>
 public DownloaderSettings(IApplicationSettings applicationSettings)
 {
     this.Address = applicationSettings.GetMandatoryValue("Address");
     this.UserName = applicationSettings.GetMandatoryValue("UserName");
     this.Password = applicationSettings.GetMandatoryValue("Password");
     this.Timeout = applicationSettings.GetMandatoryValue<int>("Timeout");
     this.ReportFileName = applicationSettings.GetMandatoryValue("ReportFileName");
     this.Separator = applicationSettings.GetMandatoryValue("Separator");
     this.ReportType = applicationSettings.GetMandatoryValue<ReportType>("ReportType");
     this.Append = applicationSettings.GetMandatoryValue<bool>("Append");
     this.BandwidthUnit = applicationSettings.GetMandatoryValue<BandwidthUnit>("BandwidthUnit");
 }