예제 #1
0
        public CommentsAdminController
        (
            ISiteService siteService,
            ISession session,
//            IActivityLibrary activityLibrary,
//            IWorkflowManager workflowManager,
            ICommentRepositoryDapper commentsRepository,
//            IWorkflowTypeIdGenerator workflowTypeIdGenerator,
            IAuthorizationService authorizationService,
            //  IActivityDisplayManager activityDisplayManager,
            IShapeFactory shapeFactory,
            INotifier notifier,

            IStringLocalizer <CommentsAdminController> s,
            IHtmlLocalizer <CommentsAdminController> h
        )
        {
            _siteService = siteService;
            _session     = session;
            // _activityLibrary = activityLibrary;
            //_workflowManager = workflowManager;
            _commentsRepository = commentsRepository;

            _authorizationService = authorizationService;
            //  _activityDisplayManager = activityDisplayManager;
            _notifier = notifier;


            New = shapeFactory;
            S   = s;
            H   = h;
        }
예제 #2
0
        //private readonly IHubContext<NotificationHub> _hubContext;
        //private readonly int NumberOfLoadingItems = 10;
        //, IRealTimeNotifier realTimeNotifier,
        //,UserManager<IUser> userManager,
        public CommentsApiController(
            ICommentRepositoryDapper commentRepository,
            ICommentUserVoteRepositoryDapper commentUserVoteRepository,
            ICommentsFileStore customFileStore,
            ISession session,
            IPushNotificationService pushNotificationService
            ) //  ,IHubContext<NotificationHub> hubContext, ApplicationDbContext context,
        {
            //  _context = context;
            // _userManager = userManager;
            //   _notificationRepository = notificationRepository;
            _session = session;
            _pushNotificationService   = pushNotificationService;
            _commentRepository         = commentRepository;
            _commentUserVoteRepository = commentUserVoteRepository;
            _customFileStore           = customFileStore;

            // _hubContext = hubContext;
        }
예제 #3
0
 public ContentItemCommentsHandler(ICommentRepositoryDapper commentRepository)
 {
     _commentRepository = commentRepository;
 }