Exemple #1
0
 public BlogController(ILogger <BlogController> logger, IPostService postService, IPageService pageService, ICategoryService categoryService, ITagsService tagsService, ICommentService commentService, IPostFactory postFactory, IPageFactory pageFactory, ICategoryFactory categoryFactory, ITagsFactory tagsFactory, BlogUserManager blogUserManager, IUserFactory userFactory, CommentsSettings commentsSettings, ICaptchaService captchaService, IHttpContextAccessor httpContextAccessor, IIPAddressService iPAddressService, IEmailSender emailSender, IJsonSerializer jsonSerializer, IStringLocalizer <BlogController> stringLocalizer, ISpamService spamService, IEventBus eventBus, BasicSettings basicSettings, IDistributedCache distributedCache)
 {
     _logger              = logger;
     _postService         = postService;
     _pageService         = pageService;
     _categoryService     = categoryService;
     _tagsService         = tagsService;
     _commentService      = commentService;
     _postFactory         = postFactory;
     _pageFactory         = pageFactory;
     _categoryFactory     = categoryFactory;
     _tagsFactory         = tagsFactory;
     _blogUserManager     = blogUserManager;
     _userFactory         = userFactory;
     _commentsSettings    = commentsSettings;
     _captchaService      = captchaService;
     _httpContextAccessor = httpContextAccessor;
     _iPAddressService    = iPAddressService;
     _emailSender         = emailSender;
     _jsonSerializer      = jsonSerializer;
     _stringLocalizer     = stringLocalizer;
     _spamService         = spamService;
     _eventBus            = eventBus;
     _basicSettings       = basicSettings;
     _distributedCache    = distributedCache;
 }
 public CommentsViewComponent(IPostService postService, ICommentService commentService, CommentsSettings commentsSettings, IPostFactory postFactory, ICommentFactory commentFactory)
 {
     _postService      = postService;
     _commentService   = commentService;
     _commentsSettings = commentsSettings;
     _postFactory      = postFactory;
 }
Exemple #3
0
        public async Task <IActionResult> Comments(CommentsSettings model)
        {
            if (ModelState.IsValid)
            {
                await _settingManager.SaveSettingAsync(model);

                AlertSuccess("已保存。");
            }

            return(View(model));
        }
        public RssController(PostManager postManager, CategoryManager categoryManager, TagsManager tagManager, PageManager pageManager, CommentManager commentManager, BasicSettings basicSettings, CommentsSettings commentsSettings)
        {
            this._postManager     = postManager;
            this._categoryManager = categoryManager;
            this._tagManager      = tagManager;
            this._pageManager     = pageManager;
            this._commentManager  = commentManager;

            this._basicSettings    = basicSettings;
            this._commentsSettings = commentsSettings;
        }
        public MetaWeblogController(LoggerFactory loggerFactory, PostManager postManager, PageManager pageManager, CategoryManager categoryManager, TagsManager tagsManager, SettingManager settingsManager, CommentManager commentManager, UserManager userManager, BasicSettings basicSettings, CommentsSettings commentsSettings)
        {
            this._pageManager     = pageManager;
            this._postManager     = postManager;
            this._categoryManager = categoryManager;
            this._tagsManager     = tagsManager;
            this._commentManager  = commentManager;
            this._settingsManager = settingsManager;
            this._userManager     = userManager;

            //this._permissionChecker = permissionChecker;
            //this._fileManager = fileManager;

            this._basicSettings    = basicSettings;
            this._commentsSettings = commentsSettings;

            _logger = loggerFactory.CreateLogger <MetaWeblogController>();
        }
Exemple #6
0
 public CommentsViewComponent(PostManager postManager, CommentManager commonManager, CommentsSettings commentsSettings)
 {
     this._postManager      = postManager;
     this._commentManager   = commonManager;
     this._commentsSettings = commentsSettings;
 }