示例#1
0
 public FeedDataService(
     IEntityContext context,
     IMapper mapper,
     IOptions <UserProfileImageSettings> options,
     IUserFollowCacheService userFollowCacheService,
     IReviewCacheService reviewCacheService,
     IReviewDataService reviewDataService,
     IUserInfoCacheService userCacheService,
     IGroupCacheService groupCacheService,
     IPostDataService postDataService,
     IUserLikeCacheService userLikesCacheService,
     IUserLikesDataService userLikesDataService,
     IPostCacheService postCacheService,
     IUserInfoDataService userInfoDataService
     )
 {
     _context = context;
     _mapper  = mapper;
     _userFollowCacheService   = userFollowCacheService;
     _groupCacheService        = groupCacheService;
     _userProfileImageSettings = options.Value;
     _userLikesCacheService    = userLikesCacheService;
     _userLikesDataService     = userLikesDataService;
     _reviewCacheService       = reviewCacheService;
     _userCacheService         = userCacheService;
     _reviewDataService        = reviewDataService;
     _postDataService          = postDataService;
     _userInfoDataService      = userInfoDataService;
     _postCacheService         = postCacheService;
 }
示例#2
0
 public UserActivityDataService(
     IEntityContext context,
     IPostCacheService postCacheService,
     IPostDataService postDataService,
     IUserInfoCacheService userInfoCacheService,
     IUserLikesDataService userLikesDataService,
     IReviewCacheService reviewCacheService,
     IUserLikeCacheService userLikesCacheService,
     IReviewDataService reviewDataService,
     IMapper mapper,
     IOptions <UserProfileImageSettings> userImageSettings
     )
 {
     _context               = context;
     _postCacheService      = postCacheService;
     _postDataService       = postDataService;
     _userInfoCacheService  = userInfoCacheService;
     _userLikesDataService  = userLikesDataService;
     _userLikesCacheService = userLikesCacheService;
     _reviewCacheService    = reviewCacheService;
     _reviewDataService     = reviewDataService;
     _dbSet  = _context.Set <UserActivity>();
     _mapper = mapper;
     _userProfileImageSettings = userImageSettings.Value;
 }
示例#3
0
 public PostDataService(
     IEntityContext context,
     IPostCacheService postCacheService,
     IUserLikesDataService userLikesDataService,
     IUserLikeCacheService userLikesCacheService,
     IUserFollowCacheService userFollowCacheService,
     IGroupDataService groupDataService,
     IGroupCacheService groupCacheService,
     IReviewCacheService reviewCacheService,
     IReviewDataService reviewDataService,
     ICommentCacheService commentCacheService,
     ICommentDataService commentDataService,
     IOptions <UserProfileImageSettings> userProfileImageSettings
     )
 {
     _context                  = context;
     _postCacheService         = postCacheService;
     _userLikesCacheService    = userLikesCacheService;
     _userLikesDataService     = userLikesDataService;
     _userFollowCacheService   = userFollowCacheService;
     _groupDataService         = groupDataService;
     _groupCacheService        = groupCacheService;
     _reviewCacheService       = reviewCacheService;
     _reviewDataService        = reviewDataService;
     _commentCacheService      = commentCacheService;
     _commentDataService       = commentDataService;
     _userProfileImageSettings = userProfileImageSettings.Value;
 }
示例#4
0
 public GroupDataService(
     IEntityContext context,
     IGroupCacheService groupCacheService,
     IUserLikeCacheService userLikesCacheService,
     IUserInfoCacheService userCacheService,
     IUserLikesDataService userLikesDataService,
     ITrendingDataService trendingDataService,
     IUserFollowCacheService userFollowCacheService,
     ITrendingCacheService trendingCacheService,
     IPostCacheService postCacheService,
     IOptions <UserProfileImageSettings> _userImageSettings
     )
 {
     _context = context;
     _userProfileImageSettings = _userImageSettings.Value;
     _postCacheService         = postCacheService;
     _userCacheService         = userCacheService;
     _groupCacheService        = groupCacheService;
     _userLikesDataService     = userLikesDataService;
     _userLikesCacheService    = userLikesCacheService;
     _userFollowCacheService   = userFollowCacheService;
     _trendingDataService      = trendingDataService;
     _trendingCacheService     = trendingCacheService;
     _dbEntitySet        = _context.Set <Group>();
     _userGroupEntitySet = _context.SetChild <UserGroup>();
 }
示例#5
0
 public ExploreDataService(
     IExploreCacheService exploreCacheService,
     ICommonCacheService commonCacheService,
     IUserLikeCacheService userLikesCacheService,
     IUserLikesDataService userLikesDataService,
     IEntityContext context
     )
 {
     _context               = context;
     _exploreCacheService   = exploreCacheService;
     _userLikesCacheService = userLikesCacheService;
     _userLikesDataService  = userLikesDataService;
     _commonCacheService    = commonCacheService;
 }
 public PostCollectionDataService(
     IEntityContext entityContext,
     IOptions <PostCollectionSettings> collectionOp,
     IOptions <UserProfileImageSettings> uiSettings,
     IUserLikesDataService userLikesDataService,
     IUserLikeCacheService userLikesCacheService,
     IPostCacheService postCacheService,
     IPostDataService postDataService
     )
 {
     _entityContext         = entityContext;
     collectionSettings     = collectionOp.Value;
     _userImageSettings     = uiSettings.Value;
     _userLikesDataService  = userLikesDataService;
     _userLikesCacheService = userLikesCacheService;
     _postCacheService      = postCacheService;
     _postDataService       = postDataService;
 }
示例#7
0
 public ReviewDataService(
     IEntityContext context,
     IReviewCacheService reviewCacheService,
     IUserLikeCacheService userLikeCacheService,
     ICommentCacheService commentCacheService,
     ICommentDataService commentDataService,
     IUserLikesDataService userLikeDataService
     )
 {
     _context              = context;
     _dbEntitySet          = _context.Set <Review>();
     _userEntitySet        = _context.Set <UserInfo>();
     _userReviewLikeSet    = _context.SetChild <UserReview>();
     _commentSet           = _context.Set <Comment>();
     _reviewCacheService   = reviewCacheService;
     _userLikeCacheService = userLikeCacheService;
     _commentCacheService  = commentCacheService;
     _commentDataService   = commentDataService;
     _userLikeDataService  = userLikeDataService;
 }
示例#8
0
 public ReviewActionService(
     IEntityContext context,
     IUserLikeCacheService userLikeCacheService,
     IUserInfoCacheService userCacheService,
     IPostCacheService postCacheService,
     IUserLikesDataService userLikeDataService,
     IOptions <UserProfileImageSettings> userImageSettings,
     IOptions <ReputationSettings> reputationSettings
     )
 {
     _context = context;
     _userLikeCacheService     = userLikeCacheService;
     _postCacheService         = postCacheService;
     _userLikeDataService      = userLikeDataService;
     _userCacheService         = userCacheService;
     _userProfileImageSettings = userImageSettings.Value;
     _dbEntitySet        = _context.SetChild <UserReview>();
     _reviewSet          = _context.Set <Review>();
     _postSet            = _context.Set <Post>();
     _reputationSet      = _context.Set <ReputationGain>();
     _reputationSettings = reputationSettings.Value;
 }