Exemplo n.º 1
0
 public PostActionService(
     IEntityContext context,
     IUserLikeCacheService userLikesCacheService,
     IGroupCacheService groupCacheService,
     IOptions <ReputationSettings> reputationSettings
     )
 {
     _context = context;
     _userLikesCacheService = userLikesCacheService;
     _groupCacheService     = groupCacheService;
     _dbEntitySet           = _context.SetChild <UserPostLike>();
     _postSet             = _context.Set <Post>();
     _postCollectionDbSet = _context.Set <PostCollection>();
     _groupDbSet          = _context.Set <Group>();
     _userGroupDbSet      = _context.SetChild <UserGroup>();
     _reputationSettings  = reputationSettings.Value;
 }
Exemplo n.º 2
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;
 }