예제 #1
0
 public BlogConfigurationService(
     ILogger <BlogConfigurationService> logger,
     IAesEncryptionService encryptionService,
     IRepository <BlogConfiguration> blogConfiguration)
 {
     _encryptionService           = encryptionService;
     _blogConfigurationRepository = blogConfiguration;
     if (null != logger)
     {
         Logger = logger;
     }
 }
예제 #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;
 }
예제 #4
0
 public EncryptThenMacService(IAesEncryptionService aesEncryptionService, IHmacService hmacService, ISerializationService serializationService)
 {
     _aesEncryptionService = aesEncryptionService;
     _hmacService          = hmacService;
     _serializationService = serializationService;
 }
예제 #5
0
 public CryptoService(IAesEncryptionService aesEncryptionService)
 {
     this.aesEncryptionService = aesEncryptionService;
 }