public BlogConfigurationService(
     ILogger <BlogConfigurationService> logger,
     IAesEncryptionService encryptionService,
     IRepository <BlogConfiguration> blogConfiguration)
 {
     _encryptionService           = encryptionService;
     _blogConfigurationRepository = blogConfiguration;
     if (null != logger)
     {
         Logger = logger;
     }
 }
Esempio n. 2
0
        public BlogConfig(
            ILogger <BlogConfig> logger,
            IAesEncryptionService encryptionService,
            IConfiguration configuration)
        {
            _encryptionService = encryptionService;
            _configuration     = configuration;
            _logger            = logger;

            BlogOwnerSettings = new BlogOwnerSettings();
            ContentSettings   = new ContentSettings();
            GeneralSettings   = new GeneralSettings();
            EmailSettings     = new EmailSettings();
            FeedSettings      = new FeedSettings();
            WatermarkSettings = new WatermarkSettings();

            Initialize();
        }
 public DecryptionValueConverter(IAesEncryptionService aes)
 {
     _aesEnctyption = aes;
 }
Esempio n. 4
0
 public EncryptThenMacService(IAesEncryptionService aesEncryptionService, IHmacService hmacService, ISerializationService serializationService)
 {
     _aesEncryptionService = aesEncryptionService;
     _hmacService          = hmacService;
     _serializationService = serializationService;
 }
Esempio n. 5
0
 public CryptoService(IAesEncryptionService aesEncryptionService)
 {
     this.aesEncryptionService = aesEncryptionService;
 }