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");
 }
示例#2
0
 public Startup(IConfiguration configuration)
 {
     Configuration = configuration;
     ConfigurationEx.Init(configuration);
 }