Ejemplo n.º 1
0
        public void PublishToFeed(User user, string message, int points, DateTime timeStamp)
        {
            if (user == null)
            {
                return;
            }
            _feedRepository.PublishEvent(user.UserID, message, points, timeStamp);
            var cutOff = _feedRepository.GetOldestTime(user.UserID, MaxFeedCount);

            _feedRepository.DeleteOlderThan(user.UserID, cutOff);
        }