コード例 #1
0
ファイル: FeedDataService.cs プロジェクト: DooMachine/fso
 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 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;
 }
コード例 #6
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;
 }