コード例 #1
0
 public static MailSenderSettings Current()
 {
     return(_serviceSettings ?? (_serviceSettings = ConfigurationManager.Instance.AppSettings.Map <MailSenderSettings>()));
 }
コード例 #2
0
 private void RegisterConfig(ContainerBuilder builder)
 {
     builder.Register(context => MailSenderSettings.Current())
     .As <IMailSenderSettings>()
     .SingleInstance();
 }