Beispiel #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");
        }
        // 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>();
        }