Beispiel #1
0
        public FeedController(IRepository<Feed> feedRepository, 
            IRepository<GroupFeed> groupFeedRepository, 
            IClaimsInfo claimsInfo,
            IAzureQueue azureQueue)
        {
            _feedRepository = feedRepository;
            _groupFeedRepository = groupFeedRepository;
            _azureQueue = azureQueue;

            _userId = claimsInfo.GetCurrentUserId();
        }
Beispiel #2
0
        public PostController(IRepository<GroupFeed> groupFeedRepository, 
                              IRepository<Feed> feedRepository, 
                              IRepository<Post> postRepository, 
                              IClaimsInfo claimsInfo,
                              IAzureCache azureCache )
        {
            _postRepository = postRepository;
            _groupFeedRepository = groupFeedRepository;
            _feedRepository = feedRepository;
            _claimsInfo = claimsInfo;
            _azureCache = azureCache;

            _userId = _claimsInfo.GetCurrentUserId();
        }
Beispiel #3
0
        public GroupController(IRepository<GroupFeed> groupFeedRepository, IClaimsInfo claimsInfo)
        {
            _groupFeedRepository = groupFeedRepository;

            _userId= claimsInfo.GetCurrentUserId();
        }