public EntityReplyRatingAggregator(
     IEntityRatingsAggregateStore entityRatingsAggregateStore,
     IEntityReplyStore <TEntityReply> entityStore)
 {
     _entityRatingsAggregateStore = entityRatingsAggregateStore;
     _entityStore = entityStore;
 }
示例#2
0
 public TopicViewComponent(
     IEntityReplyStore <Reply> entityReplyStore,
     IEntityStore <Topic> entityStore)
 {
     _entityReplyStore = entityReplyStore;
     _entityStore      = entityStore;
 }
示例#3
0
 public IssueViewComponent(
     IEntityReplyStore <Comment> entityReplyStore,
     IEntityStore <Issue> entityStore)
 {
     _entityReplyStore = entityReplyStore;
     _entityStore      = entityStore;
 }
示例#4
0
        public HomeController(
            IStringLocalizer stringLocalizer,
            IHtmlLocalizer localizer,
            IEntityReplyStore <IdeaComment> entityReplyStore,
            IEntityHistoryManager <EntityHistory> entityHistoryManager,
            IEntityHistoryStore <EntityHistory> entityHistoryStore,
            IEntityReplyManager <IdeaComment> entityReplyManager,
            IAuthorizationService authorizationService,
            IInlineDiffBuilder inlineDiffBuilder,
            IEntityManager <Idea> entityManager,
            IEntityStore <Idea> entityStore,
            IContextFacade contextFacade,
            IAlerter alerter)
        {
            _entityHistoryManager = entityHistoryManager;
            _authorizationService = authorizationService;
            _entityReplyManager   = entityReplyManager;
            _entityHistoryStore   = entityHistoryStore;
            _inlineDiffBuilder    = inlineDiffBuilder;
            _entityReplyStore     = entityReplyStore;
            _contextFacade        = contextFacade;
            _entityManager        = entityManager;
            _entityStore          = entityStore;
            _alerter = alerter;

            T = localizer;
            S = stringLocalizer;
        }
示例#5
0
 public ArticleViewComponent(
     IEntityReplyStore <Comment> entityReplyStore,
     IEntityStore <Article> entityStore)
 {
     _entityReplyStore = entityReplyStore;
     _entityStore      = entityStore;
 }
示例#6
0
        public HomeController(
            IHtmlLocalizer <HomeController> htmlLocalizer,
            IStringLocalizer <HomeController> stringLocalizer,
            ISpamSettingsStore <SpamSettings> spamSettingsStore,
            IAuthorizationService authorizationService,
            IEntityReplyStore <DocComment> entityReplyStore,
            IPlatoUserStore <User> platoUserStore,
            IOptions <PlatoOptions> platoOpts,
            IEntityStore <Doc> entityStore,
            IContextFacade contextFacade,
            ISpamChecker spamChecker,
            ISpamClient spamClient,
            IAlerter alerter)
        {
            _authorizationService = authorizationService;
            _spamSettingsStore    = spamSettingsStore;
            _entityReplyStore     = entityReplyStore;
            _platoUserStore       = platoUserStore;
            _contextFacade        = contextFacade;
            _platoOpts            = platoOpts.Value;
            _spamChecker          = spamChecker;
            _entityStore          = entityStore;
            _spamClient           = spamClient;
            _alerter = alerter;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
示例#7
0
 public EntityReplySubscriber(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     IDummyClaimsPrincipalFactory <User> claimsPrincipalFactory,
     INotificationManager <TEntityReply> notificationManager,
     IEntityReplyStore <TEntityReply> entityReplyStore,
     IFollowStore <Follows.Models.Follow> followStore,
     IEntityTagStore <EntityTag> entityTagStore,
     IAuthorizationService authorizationService,
     IDeferredTaskManager deferredTaskManager,
     IPlatoUserStore <User> platoUserStore,
     IEntityStore <Topic> entityStore,
     IBroker broker)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _claimsPrincipalFactory       = claimsPrincipalFactory;
     _authorizationService         = authorizationService;
     _deferredTaskManager          = deferredTaskManager;
     _notificationManager          = notificationManager;
     _entityReplyStore             = entityReplyStore;
     _entityTagStore = entityTagStore;
     _platoUserStore = platoUserStore;
     _followStore    = followStore;
     _entityStore    = entityStore;
     _broker         = broker;
 }
示例#8
0
 public IdeaViewComponent(
     IEntityReplyStore <IdeaComment> entityReplyStore,
     IEntityStore <Idea> entityStore)
 {
     _entityReplyStore = entityReplyStore;
     _entityStore      = entityStore;
 }
示例#9
0
 public QuestionViewComponent(
     IEntityReplyStore <Answer> entityReplyStore,
     IEntityStore <Question> entityStore)
 {
     _entityReplyStore = entityReplyStore;
     _entityStore      = entityStore;
 }
示例#10
0
        public EntityReplyService(
            IEntityReplyStore <TModel> entityReplyStore)
        {
            _entityReplyStore = entityReplyStore;

            // Default options delegate
            _configureDb = options => options.SearchType = SearchTypes.Tsql;
        }
示例#11
0
 public EntityReplySubscriber(
     IBroker broker,
     IEntityStore <Entity> entityStore,
     IEntityReplyStore <TEntityReply> entityReplyStore)
 {
     _broker           = broker;
     _entityStore      = entityStore;
     _entityReplyStore = entityReplyStore;
 }
示例#12
0
 public EntityReplyManager(
     IEntityReplyStore <TReply> entityReplyStore,
     IBroker broker, IContextFacade contextFacade,
     IEntityStore <Entity> entityStore)
 {
     _entityReplyStore = entityReplyStore;
     _contextFacade    = contextFacade;
     _entityStore      = entityStore;
     _broker           = broker;
 }
示例#13
0
 public CategoryDetailsUpdater(
     ICategoryStore <Category> channelStore,
     ICategoryManager <Category> channelManager,
     IEntityStore <Idea> entityStore,
     IEntityReplyStore <IdeaComment> replyStore)
 {
     _channelStore   = channelStore;
     _channelManager = channelManager;
     _entityStore    = entityStore;
     _replyStore     = replyStore;
 }
示例#14
0
 public EntityReplySubscriber(
     IBroker broker,
     IEntityHistoryStore <EntityHistory> entityHistoryStore,
     IEntityHistoryManager <EntityHistory> entityHistoryManager,
     IEntityReplyStore <EntityReply> entityReplyStore)
 {
     _broker               = broker;
     _entityHistoryStore   = entityHistoryStore;
     _entityHistoryManager = entityHistoryManager;
     _entityReplyStore     = entityReplyStore;
 }
示例#15
0
 public ArticleCommentListViewComponent(
     IEntityReplyStore <Comment> entityReplyStore,
     IEntityStore <Article> entityStore,
     IEntityReplyService <Comment> replyService,
     IAuthorizationService authorizationService)
 {
     _entityReplyStore     = entityReplyStore;
     _entityStore          = entityStore;
     _replyService         = replyService;
     _authorizationService = authorizationService;
 }
示例#16
0
 public CategoryDetailsUpdater(
     ICategoryManager <Category> categoryManager,
     ICategoryStore <Category> categoryStore,
     IEntityReplyStore <Comment> replyStore,
     IEntityStore <Issue> entityStore)
 {
     _categoryManager = categoryManager;
     _categoryStore   = categoryStore;
     _entityStore     = entityStore;
     _replyStore      = replyStore;
 }
 public TopicReplyListViewComponent(
     IEntityReplyStore <Reply> entityReplyStore,
     IEntityStore <Topic> entityStore,
     IEntityReplyService <Reply> replyService,
     IAuthorizationService authorizationService)
 {
     _entityReplyStore     = entityReplyStore;
     _entityStore          = entityStore;
     _replyService         = replyService;
     _authorizationService = authorizationService;
 }
示例#18
0
 public CategoryDetailsUpdater(
     ICategoryStore <Category> channelStore,
     ICategoryManager <Category> channelManager,
     IEntityStore <Topic> topicStore,
     IEntityReplyStore <Reply> replyStore)
 {
     _channelStore   = channelStore;
     _channelManager = channelManager;
     _topicStore     = topicStore;
     _replyStore     = replyStore;
 }
示例#19
0
 public CategoryDetailsUpdater(
     ICategoryStore <Category> channelStore,
     ICategoryManager <Category> channelManager,
     IEntityStore <Question> entityStore,
     IEntityReplyStore <Answer> replyStore)
 {
     _channelStore   = channelStore;
     _channelManager = channelManager;
     _entityStore    = entityStore;
     _replyStore     = replyStore;
 }
示例#20
0
 public QuestionAnswerListViewComponent(
     IEntityReplyStore <Answer> entityReplyStore,
     IEntityStore <Question> entityStore,
     IEntityReplyService <Answer> replyService,
     IAuthorizationService authorizationService)
 {
     _entityReplyStore     = entityReplyStore;
     _entityStore          = entityStore;
     _replyService         = replyService;
     _authorizationService = authorizationService;
 }
示例#21
0
        public IdeaCommentViewProvider(
            IHttpContextAccessor httpContextAccessor,
            IStringLocalizer <IdeaViewProvider> stringLocalize,
            IPostManager <IdeaComment> replyManager,
            IEntityReplyStore <IdeaComment> replyStore)
        {
            _replyManager = replyManager;
            _replyStore   = replyStore;
            _request      = httpContextAccessor.HttpContext.Request;

            T = stringLocalize;
        }
示例#22
0
        public AnswerViewProvider(
            IHttpContextAccessor httpContextAccessor,
            IStringLocalizer <QuestionViewProvider> stringLocalize,
            IPostManager <Answer> replyManager,
            IEntityReplyStore <Answer> replyStore)
        {
            _replyManager = replyManager;
            _replyStore   = replyStore;
            _request      = httpContextAccessor.HttpContext.Request;

            T = stringLocalize;
        }
示例#23
0
        public ReplyViewProvider(
            IHttpContextAccessor httpContextAccessor,
            IStringLocalizer <TopicViewProvider> stringLocalize,
            IPostManager <Reply> replyManager,
            IEntityReplyStore <Reply> replyStore)
        {
            _replyManager = replyManager;
            _replyStore   = replyStore;
            _request      = httpContextAccessor.HttpContext.Request;

            T = stringLocalize;
        }
示例#24
0
 public AnswerSubscriber(
     IBroker broker,
     IEntityStore <Question> entityStore,
     IEntityReplyStore <TEntityReply> entityReplyStore,
     IEntityUsersStore entityUsersStore,
     IUserReputationAwarder reputationAwarder)
 {
     _broker            = broker;
     _entityStore       = entityStore;
     _entityReplyStore  = entityReplyStore;
     _entityUsersStore  = entityUsersStore;
     _reputationAwarder = reputationAwarder;
 }
示例#25
0
 public IdeaCommentSubscriber(
     IBroker broker,
     IEntityStore <Idea> entityStore,
     IEntityReplyStore <TEntityReply> entityReplyStore,
     IEntityUsersStore entityUsersStore,
     IUserReputationAwarder reputationAwarder)
 {
     _broker            = broker;
     _entityStore       = entityStore;
     _entityReplyStore  = entityReplyStore;
     _entityUsersStore  = entityUsersStore;
     _reputationAwarder = reputationAwarder;
 }
示例#26
0
 public ReplyOperator(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     INotificationManager <Reply> notificationManager,
     IDeferredTaskManager deferredTaskManager,
     IPlatoUserStore <User> platoUserStore,
     IEntityReplyStore <Reply> replyStore,
     ISpamChecker spamChecker)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _notificationManager          = notificationManager;
     _deferredTaskManager          = deferredTaskManager;
     _platoUserStore = platoUserStore;
     _spamChecker    = spamChecker;
     _replyStore     = replyStore;
 }
示例#27
0
 public VoteController(
     IEntityReplyRatingAggregator <Reply> entityReplyRatingsAggregator,
     IEntityRatingAggregator <Topic> entityRatingsAggregator,
     IEntityRatingsManager <EntityRating> entityRatingManager,
     IEntityRatingsStore <EntityRating> entityRatingsStore,
     IAuthorizationService authorizationService,
     IEntityReplyStore <Reply> entityReplyStore,
     IEntityStore <Topic> entityStore,
     IClientIpAddress clientIpAddress)
 {
     _entityReplyRatingsAggregator = entityReplyRatingsAggregator;
     _entityRatingsAggregator      = entityRatingsAggregator;
     _authorizationService         = authorizationService;
     _entityRatingManager          = entityRatingManager;
     _entityRatingsStore           = entityRatingsStore;
     _entityReplyStore             = entityReplyStore;
     _clientIpAddress = clientIpAddress;
     _entityStore     = entityStore;
 }
示例#28
0
        public HomeController(
            IHtmlLocalizer htmlLocalizer,
            IStringLocalizer stringLocalizer,
            IEntityStore <Question> entityStore,
            IContextFacade contextFacade,
            IAuthorizationService authorizationService,
            IEntityReplyStore <Answer> entityReplyStore,
            IPostManager <Answer> replyManager,
            IAlerter alerter)
        {
            _entityStore          = entityStore;
            _contextFacade        = contextFacade;
            _authorizationService = authorizationService;
            _entityReplyStore     = entityReplyStore;
            _replyManager         = replyManager;
            _alerter = alerter;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
示例#29
0
        public CommentViewProvider(
            IHttpContextAccessor httpContextAccessor,
            IStringLocalizer stringLocalize,
            IEntityTagManager <EntityTag> entityTagManager,
            IEntityTagStore <EntityTag> entityTagStore,
            IEntityReplyStore <Comment> replyStore,
            ITagManager <TagBase> tagManager,
            IFeatureFacade featureFacade,
            IContextFacade contextFacade,
            ITagStore <TagBase> tagStore)
        {
            _request          = httpContextAccessor.HttpContext.Request;
            _entityTagManager = entityTagManager;
            _entityTagStore   = entityTagStore;
            _featureFacade    = featureFacade;
            _contextFacade    = contextFacade;
            _tagManager       = tagManager;
            _tagStore         = tagStore;
            _replyStore       = replyStore;

            T = stringLocalize;
        }
示例#30
0
        public HomeController(
            IHtmlLocalizer <HomeController> htmlLocalizer,
            IStringLocalizer <HomeController> stringLocalizer,
            IEntityStore <Topic> entityStore,
            IContextFacade contextFacade,
            IAuthorizationService authorizationService,
            IPostManager <Topic> topicManager,
            IAlerter alerter,
            IEntityReplyStore <Reply> entityReplyStore,
            IPostManager <Reply> replyManager)
        {
            _entityStore          = entityStore;
            _contextFacade        = contextFacade;
            _authorizationService = authorizationService;
            _topicManager         = topicManager;
            _alerter          = alerter;
            _entityReplyStore = entityReplyStore;
            _replyManager     = replyManager;

            T = htmlLocalizer;
            S = stringLocalizer;
        }