public LocalAccountService( IRepository <LocalAccountEntity> accountRepo, IBlogAudit audit) { _accountRepo = accountRepo; _audit = audit; }
public PageService( IRepository <PageEntity> pageRepo, IBlogAudit audit) { _pageRepo = pageRepo; _audit = audit; }
public FriendLinkService( IRepository <FriendLinkEntity> friendlinkRepo, IBlogAudit audit) { _friendlinkRepo = friendlinkRepo; _audit = audit; }
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()); }
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; }
public MenuService( ILogger <MenuService> logger, IRepository <MenuEntity> menuRepo, IBlogAudit audit) { _logger = logger; _menuRepo = menuRepo; _audit = audit; }
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()); }
public FriendLinkService( ILogger <FriendLinkService> logger, IOptions <AppSettings> settings, IRepository <FriendLinkEntity> friendlinkRepository, IBlogAudit blogAudit) : base(logger, settings) { _friendlinkRepository = friendlinkRepository; _blogAudit = blogAudit; }
public TagService( ILogger <TagService> logger, IRepository <TagEntity> tagRepository, IRepository <PostTagEntity> postTagRepository, IBlogAudit blogAudit) : base(logger) { _tagRepository = tagRepository; _postTagRepository = postTagRepository; _blogAudit = blogAudit; }
public SettingsController( IBlogConfig blogConfig, IBlogAudit blogAudit, ILogger <SettingsController> logger) { _blogConfig = blogConfig; _blogAudit = blogAudit; _logger = logger; }
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; }
public TagService( IRepository <TagEntity> tagRepo, IRepository <PostTagEntity> postTagRepo, IBlogAudit audit, IOptions <List <TagNormalization> > tagNormalization) { _tagRepo = tagRepo; _postTagRepo = postTagRepo; _audit = audit; _tagNormalization = tagNormalization; }
public TagService( IOptions <AppSettings> settings, IRepository <TagEntity> tagRepo, IRepository <PostTagEntity> postTagRepo, IBlogAudit audit) { _settings = settings.Value; _tagRepo = tagRepo; _postTagRepo = postTagRepo; _audit = audit; }
public CategoryService( IRepository <CategoryEntity> catRepo, IRepository <PostCategoryEntity> postCatRepo, IBlogAudit audit, IBlogCache cache) { _catRepo = catRepo; _postCatRepo = postCatRepo; _audit = audit; _cache = cache; }
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; }
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; }
public SettingsController( IFriendLinkService friendLinkService, IBlogConfig blogConfig, IBlogAudit blogAudit, ILogger <SettingsController> logger) { _blogConfig = blogConfig; _blogAudit = blogAudit; _friendLinkService = friendLinkService; _logger = logger; }
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> >(); }
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; }
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; }
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> >(); }
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; }
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; }
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; }