示例#1
0
 public NewPostNotifier(IPostNotificationService postNotificationService, IUserService userService, INotificationService notificationService, IMapper mapper)
 {
     _postNotificationService = postNotificationService;
     _userService             = userService;
     _notificationService     = notificationService;
     _mapper = mapper;
 }
示例#2
0
        public PostService(
            IUnitOfWork2 uow,
            IPermissionService permissionService,
            IPostNotificationService postNotificationService,
            ICommentService commentService)
        {
            _uow = uow;
            _permissionService       = permissionService;
            _postNotificationService = postNotificationService;
            _commentService          = commentService;

            _postsDbSet      = uow.GetDbSet <Post>();
            _usersDbSet      = uow.GetDbSet <ApplicationUser>();
            _moderatorsDbSet = uow.GetDbSet <WallModerator>();
            _wallsDbSet      = uow.GetDbSet <EntityModels.Models.Multiwall.Wall>();
        }
示例#3
0
 public SharedEventNotifier(IWallService wallService, IPostNotificationService postNotificationService)
 {
     _wallService             = wallService;
     _postNotificationService = postNotificationService;
 }