static Configuration() { MaillConfiguration = new maillServerConfiguration { fromMail = ConfigurationEx.Get("maillServerConfiguration:fromMail"), nickName = ConfigurationEx.Get("maillServerConfiguration:nickName"), pwd = ConfigurationEx.Get("maillServerConfiguration:pwd"), smtpserver = ConfigurationEx.Get("maillServerConfiguration:smtpserver"), userName = ConfigurationEx.Get("maillServerConfiguration:userName") }; maillRecipientConfiguration = ConfigurationEx.Get("maillRecipientConfiguration"); }
public Startup(IConfiguration configuration) { Configuration = configuration; ConfigurationEx.Init(configuration); }