Пример #1
0
 public AbpNotificationsTestDataBuilder(
     INotificationStore notificationStore,
     IUserNotificationRepository userNotificationRepository)
 {
     _notificationStore          = notificationStore;
     _userNotificationRepository = userNotificationRepository;
 }
Пример #2
0
 public UserNotificationService(
     INotifier notifier,
     IUserNotificationRepository repository
     ) : base(notifier)
 {
     _repository = repository;
 }
Пример #3
0
 public NotificationAppService(
     INotificationRepository notificationRepository,
     IUserNotificationRepository userNotificationRepository)
 {
     _notificationRepository     = notificationRepository;
     _userNotificationRepository = userNotificationRepository;
 }
Пример #4
0
        public UserNotificationStore(IUserNotificationRepository repository, ICounterService counters, IClock clock)
        {
            this.repository = repository;
            this.counters   = counters;
            this.clock      = clock;

            collector = new StatisticsCollector(repository, 5000);
        }
Пример #5
0
 public UserExtendService(IUserExtendRepository repository, IUnitOfWork unitOfWork,
                          IUserNotificationRepository userNotificationRepository, IRoleRepository roleRepository) : base(repository, unitOfWork)
 {
     this.repository = repository;
     this.unitOfWork = unitOfWork;
     this.userNotificationRepository = userNotificationRepository;
     this.roleRepository             = roleRepository;
 }
Пример #6
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context          = context;
     Gigs              = new GigRepository(context);
     Attendances       = new AttendanceRepository(context);
     Followings        = new FollowingRepository(context);
     Genres            = new GenreRepository(context);
     UserNotifications = new UserNotificationRepository(context);
 }
Пример #7
0
 public FavoriteSurveysService(IFavoriteSurveysRepository repository, IUnitOfWork unitOfWork,
                               IUserRepository userRepository, IUserNotificationRepository userNotificationRepository,
                               ISurveyRepository surveyRepository) : base(repository, unitOfWork)
 {
     this.repository                 = repository;
     this.unitOfWork                 = unitOfWork;
     this.userRepository             = userRepository;
     this.surveyRepository           = surveyRepository;
     this.userNotificationRepository = userNotificationRepository;
 }
Пример #8
0
 public NotificationsPageController(INotifier notifier,
                                    IUserNotificationRepository userNotificationRepository,
                                    QueryableNotificationUserService queryableNotificationUserService,
                                    UIUserProvider userProvider)
 {
     this.notifier = notifier;
     this.userNotificationRepository       = userNotificationRepository;
     this.queryableNotificationUserService = queryableNotificationUserService;
     this.userProvider = userProvider;
 }
 public UpcomingEventsInYourAreaBaseNotifier(IEventRepository eventRepository,
                                             IUserRepository userRepository,
                                             IEventAttendeeRepository eventAttendeeRepository,
                                             IUserNotificationRepository userNotificationRepository,
                                             IUserNotificationPreferenceRepository userNotificationPreferenceRepository,
                                             IEmailSender emailSender,
                                             IMapRepository mapRepository,
                                             ILogger logger) :
     base(eventRepository, userRepository, eventAttendeeRepository, userNotificationRepository, userNotificationPreferenceRepository, emailSender, mapRepository, logger)
 {
 }
Пример #10
0
 public AdvancedTaskController(IApprovalRepository approvalRepository, IContentRepository contentRepository, IContentTypeRepository contentTypeRepository, IUserNotificationRepository userNotificationRepository, IApprovalEngine approvalEngine, LocalizationService localizationService, IAsyncDatabaseExecutor asyncDatabaseExecutor, ChangeTaskHelper changeTaskHelper, UIHelper helper)
 {
     _approvalRepository         = approvalRepository;
     _contentRepository          = contentRepository;
     _contentTypeRepository      = contentTypeRepository;
     _userNotificationRepository = userNotificationRepository;
     _approvalEngine             = approvalEngine;
     _localizationService        = localizationService;
     _changeTaskHelper           = changeTaskHelper;
     _helper = helper;
 }
Пример #11
0
 public UnitOfWork(ApplicationDbContext _db)
 {
     db                         = _db;
     gigRepository              = new GigRepository(db);
     applicationUserRepository  = new ApplicationUserRepository(db);
     genreRepository            = new GenreRepository(db);
     relationshipRepository     = new RelationshipRepository(db);
     attendancesRepository      = new AttendancesRepository(db);
     notificationsRepository    = new NotificationsRepository(db);
     userNotificationRepository = new UserNotificationRepository(db);
 }
Пример #12
0
 public EventSummaryAttendeeNotifier(IEventRepository eventRepository,
                                     IUserRepository userRepository,
                                     IEventAttendeeRepository eventAttendeeRepository,
                                     IUserNotificationRepository userNotificationRepository,
                                     IUserNotificationPreferenceRepository userNotificationPreferenceRepository,
                                     IEmailSender emailSender,
                                     IMapRepository mapRepository,
                                     ILogger logger) :
     base(eventRepository, userRepository, eventAttendeeRepository, userNotificationRepository, userNotificationPreferenceRepository, emailSender, mapRepository, logger)
 {
 }
Пример #13
0
 public NotificationStore(
     INotificationSubscriptionRepository notificationSubscriptionRepository,
     INotificationRepository notificationRepository,
     IUserNotificationRepository userNotificationRepository,
     IIdentityUserAppService identityUserAppService)
 {
     _notificationSubscriptionRepository = notificationSubscriptionRepository;
     _notificationRepository             = notificationRepository;
     _userNotificationRepository         = userNotificationRepository;
     _identityUserAppService             = identityUserAppService;
 }
Пример #14
0
 public UserService(IUserRepository userRepository, IUserFriendRepository userFriendRepository,
                    IUserLocationRepository userLocationRepository, IUserPreferenceRepository userPreferenceRepository,
                    IUserResponsRepository userReponseRepository, IUserNotificationRepository userNotificationRepository)
 {
     _userRepository             = userRepository;
     _userFriendRepository       = userFriendRepository;
     _userLocationRepository     = userLocationRepository;
     _userPreferenceRepository   = userPreferenceRepository;
     _userReponseRepository      = userReponseRepository;
     _userNotificationRepository = userNotificationRepository;
 }
 public UnitOfWork(ApplicationDbContext context)
 {
     _context          = context;
     Events            = new EventRepository(_context);
     Attendances       = new AttendanceRepository(_context);
     Followings        = new FollowingRepository(_context);
     Genres            = new GenreRepository(_context);
     Users             = new ApplicationUserRepository(_context);
     Notifications     = new NotificationRepository(_context);
     UserNotifications = new UserNotificationRepository(_context);
 }
 public NotificationManager(IUserNotificationRepository userNotificationRepository
     ,IEmailProvider emailProvider
     ,IBoardUserShareRepository boardUserShareRepository
     ,IUserManager userManager)
 {
     _userNotificationRepository = userNotificationRepository;
     _userNotificationRepository.EnsureExist();
     _emailProvider = emailProvider;
     _boardUserShareRepository = boardUserShareRepository;
     _userManager = userManager;
 }
 public LikeOrDislikeCommentService(ILikeOrDislikeCommentRepository repository,
                                    IUnitOfWork unitOfWork, IUserRepository userRepository,
                                    IUserNotificationRepository userNotificationRepository, ICommentRepository commentRepository,
                                    IRoleRepository roleRepository) : base(repository, unitOfWork)
 {
     this.repository                 = repository;
     this.unitOfWork                 = unitOfWork;
     this.userRepository             = userRepository;
     this.userNotificationRepository = userNotificationRepository;
     this.commentRepository          = commentRepository;
     this.roleRepository             = roleRepository;
 }
Пример #18
0
        public UnitOfWork(ApplicationDbContext context)
        {
            _context = context;

            Coops             = new CoopRepository(_context);
            Attendances       = new AttendanceRepository(_context);
            Games             = new GameRepository(_context);
            Followings        = new FollowingRepository(_context);
            Users             = new ApplicationUserRepository(_context);
            Notifications     = new NotificationRepository(_context);
            UserNotifications = new UserNotificationRepository(_context);
        }
Пример #19
0
 public RequestGroupService(IRequestGroupRepository repository, IUnitOfWork unitOfWork,
                            IUserRepository userRepository, IGroupRepository groupRepository,
                            INotificationRepository notificationRepository, IUserNotificationRepository userNotificationRepository,
                            IUserGroupRepository userGroupRepository) : base(repository, unitOfWork)
 {
     this.repository                 = repository;
     this.unitOfWork                 = unitOfWork;
     this.groupRepository            = groupRepository;
     this.userRepository             = userRepository;
     this.notificationRepository     = notificationRepository;
     this.userNotificationRepository = userNotificationRepository;
     this.userGroupRepository        = userGroupRepository;
 }
Пример #20
0
 public UserAnswerService(IUserAnswerRepository repository, IUnitOfWork unitOfWork,
                          IUserRepository userRepository, IUserNotificationRepository userNotificationRepository,
                          ISurveyRepository surveyRepository, IUserSurveyRepository userSurveyRepository,
                          IUserGroupRepository userGroupRepository) : base(repository, unitOfWork)
 {
     this.repository = repository;
     this.unitOfWork = unitOfWork;
     this.userNotificationRepository = userNotificationRepository;
     this.userRepository             = userRepository;
     this.surveyRepository           = surveyRepository;
     this.userSurveyRepository       = userSurveyRepository;
     this.userGroupRepository        = userGroupRepository;
 }
Пример #21
0
 public CommentService(ICommentRepository repository, IUnitOfWork unitOfWork,
                       IUserRepository userRepository, ISurveyRepository surveyRepository,
                       IUserNotificationRepository userNotificationRepository, IUserCategoryRepository userCategoryRepository,
                       INotificationRepository notificationRepository, ILikeOrDislikeCommentRepository likeOrDislikeCommentRepository) : base(repository, unitOfWork)
 {
     this.repository = repository;
     this.unitOfWork = unitOfWork;
     this.userNotificationRepository     = userNotificationRepository;
     this.surveyRepository               = surveyRepository;
     this.userRepository                 = userRepository;
     this.userCategoryRepository         = userCategoryRepository;
     this.notificationRepository         = notificationRepository;
     this.likeOrDislikeCommentRepository = likeOrDislikeCommentRepository;
 }
Пример #22
0
 public UserNotificationManager(IEventRepository eventRepository,
                                IUserRepository userRepository,
                                IEventAttendeeRepository eventAttendeeRepository,
                                IUserNotificationRepository userNotificationRepository,
                                IUserNotificationPreferenceRepository userNotificationPreferenceRepository,
                                IEmailSender emailSender,
                                IMapRepository mapRepository,
                                ILogger <UserNotificationManager> logger)
 {
     this.eventRepository                      = eventRepository;
     this.userRepository                       = userRepository;
     this.eventAttendeeRepository              = eventAttendeeRepository;
     this.userNotificationRepository           = userNotificationRepository;
     this.userNotificationPreferenceRepository = userNotificationPreferenceRepository;
     this.emailSender   = emailSender;
     this.mapRepository = mapRepository;
     this.logger        = logger;
 }
Пример #23
0
 public UserNotificationService(
     IUserNotificationRepository userNotificationRepository,
     ITransactionManager transactionManager,
     IItSystemUsageRepository systemUsageRepository,
     IItContractRepository contractRepository,
     IItProjectRepository projectRepository,
     IDataProcessingRegistrationRepository dataProcessingRepository,
     IOperationClock operationClock,
     ILogger logger)
 {
     _userNotificationRepository = userNotificationRepository;
     _transactionManager         = transactionManager;
     _systemUsageRepository      = systemUsageRepository;
     _contractRepository         = contractRepository;
     _projectRepository          = projectRepository;
     _dataProcessingRepository   = dataProcessingRepository;
     _operationClock             = operationClock;
     _logger = logger;
 }
Пример #24
0
 public UnitOfWork(
     ApplicationDbContext context,
     IAttendanceRepository attendanceRepository,
     IFollowingRepository followingRepository,
     IGenreRepository genreRepository,
     IGigRepository gigRepository,
     INotificationRepository notificationRepository,
     IApplicationUserRepository applicationUserRepository,
     IUserNotificationRepository userNotificationRepository)
 {
     _context          = context;
     Attendances       = attendanceRepository;
     Followings        = followingRepository;
     Genres            = genreRepository;
     Gigs              = gigRepository;
     Notifications     = notificationRepository;
     Users             = applicationUserRepository;
     UserNotifications = userNotificationRepository;
 }
 public NotificationStore(
     IClock clock,
     IObjectMapper objectMapper,
     ICurrentTenant currentTenant,
     IJsonSerializer jsonSerializer,
     IUnitOfWorkManager unitOfWorkManager,
     INotificationRepository notificationRepository,
     IUserSubscribeRepository userSubscribeRepository,
     IUserNotificationRepository userNotificationRepository
     )
 {
     _clock                      = clock;
     _objectMapper               = objectMapper;
     _currentTenant              = currentTenant;
     _jsonSerializer             = jsonSerializer;
     _unitOfWorkManager          = unitOfWorkManager;
     _notificationRepository     = notificationRepository;
     _userSubscribeRepository    = userSubscribeRepository;
     _userNotificationRepository = userNotificationRepository;
 }
Пример #26
0
        public NotificationEngineBase(IEventRepository eventRepository,
                                      IUserRepository userRepository,
                                      IEventAttendeeRepository eventAttendeeRepository,
                                      IUserNotificationRepository userNotificationRepository,
                                      IUserNotificationPreferenceRepository userNotificationPreferenceRepository,
                                      IEmailSender emailSender,
                                      IMapRepository mapRepository,
                                      ILogger logger)
        {
            EventRepository                      = eventRepository;
            UserRepository                       = userRepository;
            EventAttendeeRepository              = eventAttendeeRepository;
            UserNotificationRepository           = userNotificationRepository;
            UserNotificationPreferenceRepository = userNotificationPreferenceRepository;
            EmailSender   = emailSender;
            MapRepository = mapRepository;
            Logger        = logger;

            // Set the Api Key Here
            EmailSender.ApiKey = Environment.GetEnvironmentVariable("SendGridApiKey");
        }
Пример #27
0
 public SurveyService(ISurveyRepository repository, IUnitOfWork unitOfWork,
                      IUserAnswerRepository userAnswerRepository, IUserNotificationRepository userNotificationRepository,
                      IUserRepository userRepository, INotificationRepository notificationRepository,
                      ICategoryRepository categoryRepository, IUserGroupRepository userGroupRepository,
                      IUserSurveyRepository userSurveyRepository, IExcelFilesRepository excelFilesRepository,
                      IGroupRepository groupRepository, ICommentRepository commentRepository,
                      IAnswerRepository answerRepository) : base(repository, unitOfWork)
 {
     this.repository                 = repository;
     this.unitOfWork                 = unitOfWork;
     this.userAnswerRepository       = userAnswerRepository;
     this.userNotificationRepository = userNotificationRepository;
     this.userRepository             = userRepository;
     this.categoryRepository         = categoryRepository;
     this.notificationRepository     = notificationRepository;
     this.userGroupRepository        = userGroupRepository;
     this.userSurveyRepository       = userSurveyRepository;
     this.excelFilesRepository       = excelFilesRepository;
     this.groupRepository            = groupRepository;
     this.commentRepository          = commentRepository;
     this.answerRepository           = answerRepository;
 }
Пример #28
0
 public Handler(IUserNotificationRepository repository) => _repository = repository;
Пример #29
0
 public UserNotificationRepositoryTests()
 {
     _repository = GetRequiredService <IUserNotificationRepository>();
 }
 public SystemUsageDeletedUserNotificationsHandler(IUserNotificationRepository userNotificationRepository, IUserNotificationService userNotificationService)
 {
     _userNotificationRepository = userNotificationRepository;
     _userNotificationService    = userNotificationService;
 }
Пример #31
0
 public DataProcessingRegistrationDeletedUserNotificationsHandler(IUserNotificationRepository userNotificationRepository, IUserNotificationService userNotificationService)
 {
     _userNotificationRepository = userNotificationRepository;
     _userNotificationService    = userNotificationService;
 }