コード例 #1
0
        public PQRSDomain(IPQRSRepository Repository, IClientesRepository clienteRepository, IConfiguration _configuration)
        {
            _Repository  = Repository;
            _cRepository = clienteRepository;

            Configuration = _configuration;

            senderMail = Configuration["MailServer:SenderMail"];
            mailAdmon  = Configuration["MailServer:MailAdmon"];
            password   = Configuration["MailServer:Password"];
            host       = Configuration["MailServer:Host"];
            port       = int.Parse(Configuration["MailServer:Port"]);
            ssl        = bool.Parse(Configuration["MailServer:SSL"]);

            initializeSmtpClient();
        }
コード例 #2
0
ファイル: PQRSController.cs プロジェクト: equiman/FMS
 public PQRSController()
 {
     string connectionString = ConfigurationManager.ConnectionStrings["SqlServices"].ConnectionString;
     _repository = new DALPQRSRepository(connectionString);
 }