コード例 #1
0
ファイル: EmailService.cs プロジェクト: aozora/arashi
        public EmailService(ILog log)
        {
            this.log = log;
             ISystemConfigurationService service = IoC.Resolve<ISystemConfigurationService>();
             systemConfiguration = service.Get();

             this.host = systemConfiguration.SmtpHost;
             smtpClient = new SmtpClient(host);
        }
コード例 #2
0
        public ActionResult Index()
        {
            SystemConfiguration systemConfiguration = systemConfigurationService.Get();

             if (systemConfiguration == null)
            systemConfiguration = new SystemConfiguration();

             return View("Index", systemConfiguration);
        }