예제 #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();
 }