예제 #1
0
 public BlogConfig()
 {
     BlogOwnerSettings  = new BlogOwnerSettings();
     ContentSettings    = new ContentSettings();
     GeneralSettings    = new GeneralSettings();
     EmailConfiguration = new EmailConfiguration();
     FeedSettings       = new FeedSettings();
     WatermarkSettings  = new WatermarkSettings();
 }
예제 #2
0
 public BlogConfig()
 {
     // Set default values in case of blow up
     DisharmonyWords    = string.Empty;
     MetaKeyword        = string.Empty;
     MetaAuthor         = string.Empty;
     SiteTitle          = string.Empty;
     EnableComments     = true;
     EmailConfiguration = new EmailConfiguration();
     FeedSettings       = new FeedSettings();
     WatermarkSettings  = new WatermarkSettings();
 }
예제 #3
0
        public BlogConfig(
            ILogger <BlogConfig> logger,
            IConfiguration configuration)
        {
            _configuration = configuration;
            _logger        = logger;

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

            Initialize();
        }
예제 #4
0
        public BlogConfig(
            ILogger <BlogConfig> logger,
            IConfiguration configuration)
        {
            _configuration = configuration;
            _logger        = logger;

            ContentSettings      = new ContentSettings();
            GeneralSettings      = new GeneralSettings();
            NotificationSettings = new NotificationSettings();
            FeedSettings         = new FeedSettings();
            WatermarkSettings    = new WatermarkSettings();
            FriendLinksSettings  = new FriendLinksSettings();
            AdvancedSettings     = new AdvancedSettings();

            Initialize();
        }
 public Response SaveFeedConfiguration(FeedSettings feedSettings)
 {
     return(SaveObjectConfiguration(feedSettings));
 }