Example #1
0
 public PostService(IQuestionsElasticRepository questionsElasticRepository, IAnswerElasticRepository answerElasticRepository, IThreadRepository threadRepository,
                    IPostsRepository postsRepository, IElasticSuggestionHelper elasticSuggestionHelper)
 {
     this.questionsElasticRepository = questionsElasticRepository;
     this.answerElasticRepository    = answerElasticRepository;
     this.threadRepository           = threadRepository;
     this.postsRepository            = postsRepository;
     this.elasticSuggestionHelper    = elasticSuggestionHelper;
 }
Example #2
0
        public ThreadService(IThreadRepository threadRepository, IQuestionsElasticRepository questionsElasticRepository,
                             IPostsRepository postsRepository, IElasticSuggestionHelper elasticSuggestionHelper)
        {
            this.threadRepository           = threadRepository;
            this.questionsElasticRepository = questionsElasticRepository;
            this.postsRepository            = postsRepository;

            this.elasticSuggestionHelper = elasticSuggestionHelper;
        }