Beispiel #1
0
 public LocalAccountService(
     IRepository <LocalAccountEntity> accountRepo,
     IBlogAudit audit)
 {
     _accountRepo = accountRepo;
     _audit       = audit;
 }
Beispiel #2
0
 public PageService(
     IRepository <PageEntity> pageRepo,
     IBlogAudit audit)
 {
     _pageRepo = pageRepo;
     _audit    = audit;
 }
Beispiel #3
0
 public FriendLinkService(
     IRepository <FriendLinkEntity> friendlinkRepo,
     IBlogAudit audit)
 {
     _friendlinkRepo = friendlinkRepo;
     _audit          = audit;
 }
Beispiel #4
0
 public MenuService(
     ILogger <MenuService> logger,
     IOptions <AppSettings> settings,
     IRepository <MenuEntity> menuRepository,
     IBlogAudit blogAudit) : base(logger, settings)
 {
     _menuRepository = menuRepository;
     _blogAudit      = blogAudit;
 }
        public async Task <IActionResult> Delete([NotEmpty] Guid pingbackId, [FromServices] IBlogAudit blogAudit)
        {
            await _pingbackService.DeletePingback(pingbackId);

            await blogAudit.AddEntry(BlogEventType.Content, BlogEventId.PingbackDeleted,
                                     $"Pingback '{pingbackId}' deleted.");

            return(NoContent());
        }
Beispiel #6
0
 public AdminController(
     ILogger <AdminController> logger,
     IOptions <AuthenticationSettings> authSettings,
     IBlogAudit blogAudit)
     : base(logger)
 {
     _blogAudit = blogAudit;
     _authenticationSettings = authSettings.Value;
 }
 public CustomPageService(
     ILogger <CustomPageService> logger,
     IOptions <AppSettings> settings,
     IRepository <CustomPageEntity> customPageRepository,
     IBlogAudit blogAudit) : base(logger, settings)
 {
     _customPageRepository = customPageRepository;
     _blogAudit            = blogAudit;
 }
Beispiel #8
0
 public MenuService(
     ILogger <MenuService> logger,
     IRepository <MenuEntity> menuRepo,
     IBlogAudit audit)
 {
     _logger   = logger;
     _menuRepo = menuRepo;
     _audit    = audit;
 }
Beispiel #9
0
        public async Task <IActionResult> Delete(Guid pingbackId, [FromServices] IBlogAudit blogAudit)
        {
            await _pingbackService.DeletePingbackHistory(pingbackId);

            await blogAudit.AddAuditEntry(EventType.Content, AuditEventId.PingbackDeleted,
                                          $"Pingback '{pingbackId}' deleted.");

            return(Ok());
        }
Beispiel #10
0
 public FriendLinkService(
     ILogger <FriendLinkService> logger,
     IOptions <AppSettings> settings,
     IRepository <FriendLinkEntity> friendlinkRepository,
     IBlogAudit blogAudit) : base(logger, settings)
 {
     _friendlinkRepository = friendlinkRepository;
     _blogAudit            = blogAudit;
 }
Beispiel #11
0
 public TagService(
     ILogger <TagService> logger,
     IRepository <TagEntity> tagRepository,
     IRepository <PostTagEntity> postTagRepository,
     IBlogAudit blogAudit) : base(logger)
 {
     _tagRepository     = tagRepository;
     _postTagRepository = postTagRepository;
     _blogAudit         = blogAudit;
 }
Beispiel #12
0
        public SettingsController(
            IBlogConfig blogConfig,
            IBlogAudit blogAudit,
            ILogger <SettingsController> logger)
        {
            _blogConfig = blogConfig;
            _blogAudit  = blogAudit;

            _logger = logger;
        }
Beispiel #13
0
        public AdminController(
            IOptions <AuthenticationSettings> authSettings,
            IBlogAudit blogAudit,
            IPageService pageService)
        {
            _authenticationSettings = authSettings.Value;
            _pageService            = pageService;

            _blogAudit = blogAudit;
        }
 public AdminController(ILogger <AdminController> logger,
                        IOptions <AuthenticationSettings> authSettings,
                        IBlogAudit blogAudit,
                        ILocalAccountService localAccountService)
 {
     _blogAudit              = blogAudit;
     _localAccountService    = localAccountService;
     _authenticationSettings = authSettings.Value;
     _logger = logger;
 }
Beispiel #15
0
 public TagService(
     IRepository <TagEntity> tagRepo,
     IRepository <PostTagEntity> postTagRepo,
     IBlogAudit audit,
     IOptions <List <TagNormalization> > tagNormalization)
 {
     _tagRepo          = tagRepo;
     _postTagRepo      = postTagRepo;
     _audit            = audit;
     _tagNormalization = tagNormalization;
 }
Beispiel #16
0
 public TagService(
     IOptions <AppSettings> settings,
     IRepository <TagEntity> tagRepo,
     IRepository <PostTagEntity> postTagRepo,
     IBlogAudit audit)
 {
     _settings    = settings.Value;
     _tagRepo     = tagRepo;
     _postTagRepo = postTagRepo;
     _audit       = audit;
 }
Beispiel #17
0
 public CategoryService(
     IRepository <CategoryEntity> catRepo,
     IRepository <PostCategoryEntity> postCatRepo,
     IBlogAudit audit,
     IBlogCache cache)
 {
     _catRepo     = catRepo;
     _postCatRepo = postCatRepo;
     _audit       = audit;
     _cache       = cache;
 }
Beispiel #18
0
 public CategoryService(ILogger <CategoryService> logger,
                        IRepository <CategoryEntity> categoryRepository,
                        IRepository <PostCategoryEntity> postCategoryRepository,
                        IBlogAudit blogAudit,
                        IBlogCache cache) : base(logger)
 {
     _categoryRepository     = categoryRepository;
     _postCategoryRepository = postCategoryRepository;
     _blogAudit = blogAudit;
     _cache     = cache;
 }
Beispiel #19
0
 public SignInModel(
     IOptions <AuthenticationSettings> authSettings,
     ILocalAccountService localAccountService,
     ILogger <SignInModel> logger,
     IBlogAudit blogAudit, ISessionBasedCaptcha captcha)
 {
     _localAccountService = localAccountService;
     _logger    = logger;
     _blogAudit = blogAudit;
     _captcha   = captcha;
     _authenticationSettings = authSettings.Value;
 }
Beispiel #20
0
        public SettingsController(
            IFriendLinkService friendLinkService,
            IBlogConfig blogConfig,
            IBlogAudit blogAudit,
            ILogger <SettingsController> logger)
        {
            _blogConfig = blogConfig;
            _blogAudit  = blogAudit;

            _friendLinkService = friendLinkService;
            _logger            = logger;
        }
Beispiel #21
0
        public TagService(
            IRepository <TagEntity> tagRepo,
            IRepository <PostTagEntity> postTagRepo,
            IBlogAudit audit,
            IConfiguration configuration)
        {
            _tagRepo     = tagRepo;
            _postTagRepo = postTagRepo;
            _audit       = audit;

            _tagNormalizationDictionary =
                configuration.GetSection("TagNormalization").Get <Dictionary <string, string> >();
        }
Beispiel #22
0
        public CommentService(
            IBlogConfig blogConfig,
            IBlogAudit audit,
            IRepository <CommentEntity> commentRepo,
            IRepository <CommentReplyEntity> commentReplyRepo,
            IRepository <PostEntity> postRepo)
        {
            _blogConfig = blogConfig;
            _audit      = audit;

            _commentRepo      = commentRepo;
            _commentReplyRepo = commentReplyRepo;
            _postRepo         = postRepo;
        }
        public SettingsController(
            ILogger <SettingsController> logger,
            IOptionsSnapshot <AppSettings> settings,
            FriendLinkService friendLinkService,
            IBlogConfig blogConfig,
            IDateTimeResolver dateTimeResolver,
            IBlogAudit blogAudit)
            : base(logger, settings)
        {
            _blogConfig       = blogConfig;
            _dateTimeResolver = dateTimeResolver;
            _blogAudit        = blogAudit;

            _friendLinkService = friendLinkService;
        }
Beispiel #24
0
        public CommentService(
            ILogger<CommentService> logger,
            IOptions<AppSettings> settings,
            IBlogConfig blogConfig,
            IRepository<CommentEntity> commentRepository,
            IRepository<CommentReplyEntity> commentReplyRepository,
            IRepository<PostEntity> postRepository,
            IBlogAudit blogAudit) : base(logger, settings)
        {
            _blogConfig = blogConfig;

            _commentRepository = commentRepository;
            _commentReplyRepository = commentReplyRepository;
            _postRepository = postRepository;
            _blogAudit = blogAudit;
        }
Beispiel #25
0
        public PostManageService(
            IBlogAudit audit,
            ILogger <PostManageService> logger,
            IConfiguration configuration,
            IOptions <AppSettings> settings,
            IRepository <TagEntity> tagRepo,
            IRepository <PostEntity> postRepo,
            IBlogCache cache)
        {
            _audit    = audit;
            _logger   = logger;
            _tagRepo  = tagRepo;
            _postRepo = postRepo;
            _cache    = cache;
            _settings = settings.Value;

            _tagNormalizationDictionary =
                configuration.GetSection("TagNormalization").Get <Dictionary <string, string> >();
        }
Beispiel #26
0
 public PostService(
     ILogger <PostService> logger,
     IOptions <AppSettings> settings,
     IRepository <PostEntity> postRepo,
     IRepository <TagEntity> tagRepo,
     IRepository <PostTagEntity> postTagRepo,
     IRepository <PostCategoryEntity> postCatRepo,
     IDateTimeResolver dateTimeResolver,
     IBlogAudit audit,
     IBlogCache cache)
 {
     _logger           = logger;
     _settings         = settings.Value;
     _postRepo         = postRepo;
     _tagRepo          = tagRepo;
     _postTagRepo      = postTagRepo;
     _postCatRepo      = postCatRepo;
     _dateTimeResolver = dateTimeResolver;
     _audit            = audit;
     _cache            = cache;
 }
Beispiel #27
0
 public PostService(ILogger <PostService> logger,
                    IOptions <AppSettings> settings,
                    IRepository <PostEntity> postRepository,
                    IRepository <PostExtensionEntity> postExtensionRepository,
                    IRepository <TagEntity> tagRepository,
                    IRepository <PostTagEntity> postTagRepository,
                    IRepository <CategoryEntity> categoryRepository,
                    IRepository <PostCategoryEntity> postCategoryRepository,
                    IDateTimeResolver dateTimeResolver,
                    IBlogAudit blogAudit,
                    IBlogCache cache) : base(logger, settings)
 {
     _postRepository          = postRepository;
     _postExtensionRepository = postExtensionRepository;
     _tagRepository           = tagRepository;
     _postTagRepository       = postTagRepository;
     _categoryRepository      = categoryRepository;
     _postCategoryRepository  = postCategoryRepository;
     _dateTimeResolver        = dateTimeResolver;
     _blogAudit = blogAudit;
     _cache     = cache;
 }
Beispiel #28
0
        public AdminController(
            IOptions <AuthenticationSettings> authSettings,
            IBlogAudit blogAudit,
            ICategoryService categoryService,
            IFriendLinkService friendLinkService,
            IPageService pageService,
            ITagService tagService,
            ICommentService commentService,
            IPingbackService pingbackService,
            IBlogConfig blogConfig)
        {
            _authenticationSettings = authSettings.Value;
            _categoryService        = categoryService;
            _friendLinkService      = friendLinkService;
            _pageService            = pageService;
            _tagService             = tagService;
            _commentService         = commentService;
            _pingbackService        = pingbackService;

            _blogConfig = blogConfig;
            _blogAudit  = blogAudit;
        }
 public AuditLogsModel(IFeatureManager featureManager, IBlogAudit blogAudit)
 {
     _featureManager = featureManager;
     _blogAudit      = blogAudit;
 }