Ejemplo n.º 1
0
        public EncryptionHelper()
        {
            InitializeComponent();

            var webConfig = new RnWebConfig();

            rtb_salt.Text = webConfig.GetAppSetting("Rn.EncryptionService.Salt");
            rtb_pass.Text = webConfig.GetAppSetting("Rn.EncryptionService.ServerPass");
        }
Ejemplo n.º 2
0
        // Constructor
        public MailerDbInitializerHelper(MailerDbContext db)
        {
            _db = db;

            WebConfig         = new RnWebConfig();
            EncryptionService = new RnEncryptionService(WebConfig);
            DevelopmentMode   = WebConfig.GetBoolAppSetting("Rn.Mailer.DevMode", false);

            Users        = new List <MailUserEntity>();
            MailAccounts = new List <MailAccountEntity>();
            ApiKeys      = new List <MailApiKeyEntity>();
        }