Exemple #1
0
        public AdminController
        (
            ISiteService siteService,
            ISession session,
//            IActivityLibrary activityLibrary,
//            IWorkflowManager workflowManager,
            INotificationRepositoryDapper notificationsRepository,
//            IWorkflowTypeIdGenerator workflowTypeIdGenerator,
            IAuthorizationService authorizationService,
            //  IActivityDisplayManager activityDisplayManager,
            IShapeFactory shapeFactory,
            INotifier notifier,

            IStringLocalizer <AdminController> s,
            IHtmlLocalizer <AdminController> h
        )
        {
            _siteService = siteService;
            _session     = session;
            // _activityLibrary = activityLibrary;
            //_workflowManager = workflowManager;
            _notificationsRepository = notificationsRepository;

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


            New = shapeFactory;
            S   = s;
            H   = h;
        }
 public NotificationEventHandler(INotificationRepositoryDapper notificationRepositoryDapper)
 {
     _notificationRepositoryDapper = notificationRepositoryDapper;
 }
Exemple #3
0
        private const int maxNotificationLength = 78;//78 characters

//        public NotificationsController(ApplicationDbContext context, UserManager<ApplicationUser> userManager)
//        {
//            _context = context;
//            _userManager = userManager;
//        }

        public NotificationsController(INotificationRepositoryDapper notificationRepository)
        {
            _notificationRepository = notificationRepository;
        }
 public ContentItemNotificationsHandler(INotificationRepositoryDapper notificationRepositoryDapper)   //INotificationRepository notificationsRepository,
 {
     //   _notificationsRepository = notificationsRepository;
     _notificationRepositoryDapper = notificationRepositoryDapper;
 }