public NotificationsPartHandler(
            IRepository<NotificationsPartRecord> repository, 
            IContentManager contentManager, 
            IContentDefinitionManager contentDefinitionManager, 
            INotificationsService notificationsService) {

            _contentManager = contentManager;
            _contentDefinitionManager = contentDefinitionManager;

            Filters.Add(StorageFilter.For(repository));

            OnActivated<NotificationsPart>(LazyLoadHandlers);
            OnUpdated<NotificationsPart>((ctx, part) => notificationsService.UpdateScheduleTasks(part));
            OnUnpublished<NotificationsPart>((ctx, part) => notificationsService.DeleteExistingScheduleTasks(part.ContentItem));

            OnRemoved<NotificationsPart>((ctx, part) => {
                // Also delete all subscriptions
                var subscriptions = notificationsService.GetSubscriptionsForEvent(part.Id);
                foreach (var subscription in subscriptions) {
                    notificationsService.DeleteSubscription(subscription);
                }
                // And the scheduled tasks
                notificationsService.DeleteExistingScheduleTasks(part.ContentItem);
            });
        }
Example #2
0
 public ChatroomsController(
     IChatroomsManager chatroomManagerService,
     INotificationsService notificationsService,
     ILogger <ChatroomsController> logger)
 {
     _chatroomManagerService = chatroomManagerService ?? throw new ArgumentNullException(nameof(chatroomManagerService));
     _notificationsService   = notificationsService ?? throw new ArgumentNullException(nameof(notificationsService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public CatalogSearchPageViewModel(
     INotificationsService notificationsService, 
     ICatalogRepository catalogRepository, 
     ICatalogReaderFactory catalogReaderFactory,
     INavigationService navigationService,
     CatalogController catalogController) 
     : base(catalogReaderFactory, catalogRepository, notificationsService, navigationService, catalogController)
 {
 }
Example #4
0
 public UWPRemotePushNotificationsService(IPersistedStorage persistedStorage, IRemotePushRegistrationService remotePushRegistrationService, IPushTagsProvider pushTagsProvider, IUniversalWindowsRemoteNotificationsPresenter remoteNotificationsPresenter)
 {
     uwpNotificationsService =
         new PushInvalidateRegistrationAppUpdateBackgroundTaskNotificationsServiceDecorator(
             new PushBackgroundTaskNotificationServiceDecorator(
                 new UniversalWindowsRemotePushNotificationService(persistedStorage,
                                                                   remotePushRegistrationService, pushTagsProvider)
                 ));
 }
 public AlertDefinition(
     IAlertDefinitionsRepository alertDefinitionsRepository,
     IAlertCriteriaSpecificationFactory alertCriteriaSpecificationFactory,
     INotificationsService notificationsService)
 {
     _alertDefinitionsRepository        = alertDefinitionsRepository ?? throw new ArgumentNullException(nameof(alertDefinitionsRepository));
     _alertCriteriaSpecificationFactory = alertCriteriaSpecificationFactory ?? throw new ArgumentNullException(nameof(alertCriteriaSpecificationFactory));
     _notificationsService = notificationsService ?? throw new ArgumentNullException(nameof(notificationsService));
 }
Example #6
0
 public EventsController(IEventsService eventService, INotificationsService notificationsService, ISportsService sportsService, IUserChallengesService challengeService, IVenueService venueService, IUnitOfWorkAsync unitOfWork)
 {
     _eventService         = eventService;
     _sportsService        = sportsService;
     _challengeService     = challengeService;
     _venueService         = venueService;
     _notificationsService = notificationsService;
     _unitOfWork           = unitOfWork;
 }
Example #7
0
 public StatusWatcherService
     (IDeviceService deviceService,
     INotificationsService notificationService,
     ISettingsService settingsService)
 {
     _notificationService = notificationService;
     _deviceService       = deviceService;
     _settingsService     = settingsService;
 }
Example #8
0
 public NotificationsController(
     INotificationsService notificationsService,
     ITemplateEngine templateEngine,
     ILocalizationService localizationService)
 {
     _notificationsService = notificationsService;
     _templateEngine       = templateEngine;
     _localizationService  = localizationService;
 }
Example #9
0
 public TasksService(IDbHelper helper, IProjectRepository projectRepo, IGenericRepository genericRepo, IMemberRepository memberRepo, ITasksRepository taskRepo, INotificationsService notificationService)
 {
     _helper = helper;
     _projectRepo = projectRepo;
     _genericRepo = genericRepo;
     _memberRepo = memberRepo;
     _taskRepo = taskRepo;
     _notificationService = notificationService;
 }
 public AllCatalogsSearchPageViewModel(INotificationsService notificationsService, ICatalogReaderFactory catalogReaderFactory, ICatalogRepository catalogRepository,
                                       INavigationService navigationService)
 {
     Items = new ObservableCollection <CatalogItemModel>();
     _notificationsService = notificationsService;
     _catalogReaderFactory = catalogReaderFactory;
     _catalogRepository    = catalogRepository;
     _navigationService    = navigationService;
 }
Example #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationTrigger"/> class.
 /// </summary>
 /// <param name="policyOptions">
 /// The policy options.
 /// </param>
 /// <param name="notificationsService">
 /// The notifications service.
 /// </param>
 /// <param name="logger">
 /// The logger.
 /// </param>
 public NotificationTrigger(
     IOptions <RetryPolicyOptions> policyOptions,
     INotificationsService notificationsService,
     ILogger <NotificationTrigger> logger)
 {
     this.policyOptions        = policyOptions.Value;
     this.notificationsService = notificationsService;
     this.logger = logger;
 }
 public NotificationsPartDriver(
     INotificationsService notificationsService,
     IWorkContextAccessor workContextAccessor,
     IContentManager contentManager)
 {
     _notificationsService = notificationsService;
     _workContextAccessor  = workContextAccessor;
     _contentManager       = contentManager;
 }
Example #13
0
 public AnuncioService(ApplicationDbContext dbContext, ILogger <AnuncioService> log, INotificationsService notificationsService, ITemporizadorService temporizadorService)
 {
     _dbContext        = dbContext;
     repositoryAnuncio = new Repository <Anuncio>(dbContext);
     _log = log;
     _notificationsService = notificationsService;
     _temporizadorService  = temporizadorService;
     initCat();
 }
 public AllCatalogsSearchPageViewModel(INotificationsService notificationsService, ICatalogReaderFactory catalogReaderFactory, ICatalogRepository catalogRepository, 
     INavigationService navigationService)
 {
     Items = new ObservableCollection<CatalogItemModel>();
     _notificationsService = notificationsService;
     _catalogReaderFactory = catalogReaderFactory;
     _catalogRepository = catalogRepository;
     _navigationService = navigationService;
 }
Example #15
0
 public CatalogSearchPageViewModel(
     INotificationsService notificationsService,
     ICatalogRepository catalogRepository,
     ICatalogReaderFactory catalogReaderFactory,
     INavigationService navigationService,
     CatalogController catalogController)
     : base(catalogReaderFactory, catalogRepository, notificationsService, navigationService, catalogController)
 {
 }
Example #16
0
 public BooksController(IBookService bookService, IMapper mapper, IAuthorService authorService, IGenreService genreService,
                        INotificationsService notificationsService)
 {
     _bookService          = bookService;
     _authorService        = authorService;
     _genreService         = genreService;
     _mapper               = mapper;
     _notificationsService = notificationsService;
 }
Example #17
0
 public UsersController(
     IUsersManager userManagerService,
     INotificationsService notificationsService,
     ILogger <UsersController> logger)
 {
     _userManager          = userManagerService ?? throw new ArgumentNullException(nameof(userManagerService));
     _notificationsService = notificationsService ?? throw new ArgumentNullException(nameof(notificationsService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #18
0
 public CardsService(
     IDeletableEntityRepository <Card> cardRepository,
     IQrCodeService qrCodeService,
     INotificationsService notificationsService)
 {
     this.cardRepository       = cardRepository;
     this.qrCodeService        = qrCodeService;
     this.notificationsService = notificationsService;
 }
Example #19
0
        public SettingsViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, INotificationsService pushService, IContactsService contactsService)
            : base(protoService, cacheService, settingsService, aggregator)
        {
            _pushService     = pushService;
            _contactsService = contactsService;

            AskCommand       = new RelayCommand(AskExecute);
            LogoutCommand    = new RelayCommand(LogoutExecute);
            EditPhotoCommand = new RelayCommand <StorageFile>(EditPhotoExecute);
        }
Example #20
0
 public PublishReleaseContentFunction(IContentService contentService,
                                      INotificationsService notificationsService,
                                      IReleaseService releaseService,
                                      IReleaseStatusService releaseStatusService)
 {
     _contentService       = contentService;
     _notificationsService = notificationsService;
     _releaseService       = releaseService;
     _releaseStatusService = releaseStatusService;
 }
Example #21
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context">DbContext</param>
 /// <param name="http">HttpClient</param>
 /// <param name="notificationsService">Email Notification service</param>
 public QueryPortalService(
     DashboardDbContext context,
     HttpClient http,
     INotificationsService notificationsService
     )
 {
     _context = context;
     _http    = http;
     _notificationsService = notificationsService;
 }
Example #22
0
        public LogOutViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, INotificationsService notificationsService, IContactsService contactsService, IPasscodeService passcodeService)
            : base(protoService, cacheService, settingsService, aggregator)
        {
            _pushService     = notificationsService;
            _contactsService = contactsService;
            _passcodeService = passcodeService;

            AskCommand    = new RelayCommand(AskExecute);
            LogoutCommand = new RelayCommand(LogoutExecute);
        }
        public ProxyNotificationsService(Action <IEnumerator> startCoroutine)
        {
#if UNITY_EDITOR
            _service = new EditorNotificationsService();
#elif UNITY_ANDROID
            _service = new Notifications.Impls.Android.AndroidNotificationsService();
#elif UNITY_IOS
            _service = new Notifications.Impls.iOs.IOsNotificationsService(startCoroutine);
#endif
        }
 /// <summary>
 /// Creates a new instance of the DeliveriesController class.
 /// </summary>
 /// <param name="notificationsRepo"></param>
 /// <param name="deliveriesRepo"></param>
 /// <param name="deliverersRepo"></param>
 /// <param name="locationsRepo"></param>
 /// <param name="feedbackRepo"></param>
 /// <param name="logger"></param>
 public DeliveriesController(INotificationsRepository notificationsRepo, IDeliveriesRepository deliveriesRepo, IDeliverersRepository deliverersRepo, ILocationsRepository locationsRepo, IFeedbackRepository feedbackRepo, ILogger logger)
 {
     _logger = logger;
     _notificationsService  = new NotificationsService(deliverersRepo, deliveriesRepo, notificationsRepo, locationsRepo, _logger);
     _deliverersService     = new DeliverersService(deliverersRepo, _logger);
     _authorizationsService = new AuthenticationsService(_logger);
     _deliveriesService     = new DeliveriesService(deliveriesRepo, locationsRepo, _logger);
     _locationsService      = new LocationsService(locationsRepo, _logger);
     _feedbackService       = new FeedbackService(feedbackRepo, _logger);
 }
Example #25
0
 public BaseHub(ILogger <BaseHub> logger,
                IWelcomeNotificationsService welcomeNotificationsService,
                ISubscriptionService subscriptionService,
                INotificationsService notificationsService)
 {
     _logger = logger;
     _welcomeNotificationsService = welcomeNotificationsService;
     _subscriptionService         = subscriptionService;
     _notificationsService        = notificationsService;
 }
Example #26
0
        public ComboService(IThresholdStrategy threshold, INotificationsService notifications, IComboMeter meter, int timeout)
        {
            this.threshold     = threshold;
            this.notifications = notifications;
            this.meter         = meter;

            this.timer           = new Timer(timeout);
            this.timer.Elapsed  += Timer_Elapsed;
            this.timer.AutoReset = false;
        }
Example #27
0
 public BuildService(
     BuilderContext context,
     IMapper mapper,
     INotificationsService notificationsService,
     IBuildLogService buildLogService
     ) : base(context, mapper)
 {
     _notificationsService = notificationsService;
     _buildLogService      = buildLogService;
 }
        public NotificationsPageViewModel(IBeaconManagementService beaconManagementService, INotificationsService notificationsService)
        {
            _beaconManagementService = beaconManagementService;
            _notificationsService    = notificationsService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

            _watcher           = _beaconManagementService.GetWatcher();
            _watcher.Received += Watcher_Received;
        }
        public NotificationsPageViewModel(IBeaconManagementService beaconManagementService, INotificationsService notificationsService)
        {
            _beaconManagementService = beaconManagementService;
            _notificationsService = notificationsService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

            _watcher = _beaconManagementService.GetWatcher();
            _watcher.Received += Watcher_Received;
        }
Example #30
0
 public SalesController(
     ISalesService salesService,
     INotificationsService notificationsService,
     IEmployeesManagerService employeesManagerService,
     UserManager <ApplicationUser> userManager)
 {
     this.salesService            = salesService;
     this.notificationsService    = notificationsService;
     this.employeesManagerService = employeesManagerService;
     this.userManager             = userManager;
 }
        public AddCatalogPageViewModel(IWebDataGateway dataGateway, INotificationsService notificationsService, IErrorHandler errorHandler, 
            INavigationService navigationService, ICatalogRepository catalogRepository)
        {
            _dataGateway = dataGateway;
            _notificationsService = notificationsService;
            _errorHandler = errorHandler;
            _navigationService = navigationService;
            _catalogRepository = catalogRepository;

            CatalogUrl = HTTP_PREFIX;
        }
 public NotifyEmployerOfReservationEventAction(
     IAccountsService accountsService,
     INotificationsService notificationsService,
     ILogger <NotifyEmployerOfReservationEventAction> logger,
     INotificationTokenBuilder notificationTokenBuilder)
 {
     _accountsService      = accountsService;
     _notificationsService = notificationsService;
     _logger = logger;
     _notificationTokenBuilder = notificationTokenBuilder;
 }
        public CurrentExpensesViewModel(
            IExpenseService expenses, 
            IApplicationNavigationService applicationNavigation,
            INotificationsService notifications)
        {
            this.expenses = expenses;
            this.applicationNavigation = applicationNavigation;
            this.notifications = notifications;

            ExpenseItems = new BindableCollection<ExpenseItemViewModel>();
        }
        public CurrentExpensesViewModel(
            IExpenseService expenses,
            IApplicationNavigationService applicationNavigation,
            INotificationsService notifications)
        {
            this.expenses = expenses;
            this.applicationNavigation = applicationNavigation;
            this.notifications         = notifications;

            ExpenseItems = new BindableCollection <ExpenseItemViewModel>();
        }
Example #35
0
        public AddCatalogPageViewModel(IWebDataGateway dataGateway, INotificationsService notificationsService, IErrorHandler errorHandler,
                                       INavigationService navigationService, ICatalogRepository catalogRepository)
        {
            _dataGateway          = dataGateway;
            _notificationsService = notificationsService;
            _errorHandler         = errorHandler;
            _navigationService    = navigationService;
            _catalogRepository    = catalogRepository;

            CatalogUrl = HTTP_PREFIX;
        }
        public SignInViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, ISessionService sessionService, ILifetimeService lifecycleService, INotificationsService notificationsService)
            : base(protoService, cacheService, settingsService, aggregator)
        {
            _sessionService       = sessionService;
            _lifetimeService      = lifecycleService;
            _notificationsService = notificationsService;

            SwitchCommand = new RelayCommand(SwitchExecute);
            SendCommand   = new RelayCommand(SendExecute, () => !IsLoading);
            ProxyCommand  = new RelayCommand(ProxyExecute);
        }
Example #37
0
 public CustomersController(
     ICustomersService customersService,
     IEmployeesManagerService employeesManagerService,
     INotificationsService notificationsService,
     UserManager <ApplicationUser> userManager)
 {
     this.customersService        = customersService;
     this.employeesManagerService = employeesManagerService;
     this.notificationsService    = notificationsService;
     this.userManager             = userManager;
 }
 public CatalogPageViewModel(
     ICatalogReaderFactory catalogReaderFactory, 
     ICatalogRepository catalogRepository, 
     INotificationsService notificationsService, 
     INavigationService navigationService,
     CatalogController catalogController,
     ICatalogAuthorizationFactory catalogAuthorizationFactory) 
     : base(catalogReaderFactory, catalogRepository, notificationsService, navigationService, catalogController)
 {
     _navigationService = navigationService;
     _catalogController = catalogController;
     _catalogAuthorizationFactory = catalogAuthorizationFactory;
 }
 protected CatalogPageViewModelBase(
     ICatalogReaderFactory catalogReaderFactory, 
     ICatalogRepository catalogRepository, 
     INotificationsService notificationsService,
     INavigationService navigationService,
     CatalogController catalogController)
 {
     FolderItems = new ObservableCollection<CatalogItemModel>();
     CatalogReaderFactory = catalogReaderFactory;
     CatalogRepository = catalogRepository;
     NotificationsService = notificationsService;
     _navigationService = navigationService;
     _catalogController = catalogController;
 }
Example #40
0
 public SharingDataModel(
     AppSettings appSettings,
     INotificationsService notificationsService,
     ISkyDriveService skyDriveService)
 {
     _appSettings = appSettings;
     _notificationsService = notificationsService;
     _skyDriveService = skyDriveService;
     ShareMethods = new List<ShareMethodDataModel>
                        {
                            new ShareMethodDataModel {Method = Method.Email, Name = UIStrings.Sharing_Email},
                            new ShareMethodDataModel {Method = Method.SocialNetworks, Name = UIStrings.Sharing_Social}
                        };
 }
 public AuthorizationPageViewModel(
     ICatalogRepository catalogRepository, 
     INavigationService navigationService, 
     INotificationsService notificationsService, 
     IErrorHandler errorHandler, 
     ICatalogAuthorizationFactory authorizationFactory,
     CatalogController catalogController)
 {
     _catalogRepository = catalogRepository;
     _navigationService = navigationService;
     _notificationsService = notificationsService;
     _errorHandler = errorHandler;
     _authorizationFactory = authorizationFactory;
     _catalogController = catalogController;
 }
Example #42
0
        public DownloadController(
            IBookDownloader bookDownloader, 
            INavigationService navigationService,
            INotificationsService notificationsService,
            IEventAggregator eventAggregator, 
            IDownloadsContainer container, 
            IBookDownloadsRepository bookDownloadsRepository)
        {
            _bookDownloader = bookDownloader;
            _navigationService = navigationService;
            _notificationsService = notificationsService;
            _eventAggregator = eventAggregator;
            _container = container;
            _bookDownloadsRepository = bookDownloadsRepository;

            _bookDownloader.DownloadCompleted += BookDownloaderOnDownloadCompleted;
            _bookDownloader.DownloadError += BookDownloaderOnDownloadError;
        }
 public TopicsSubscriptionsService(ITopicsSubscriptionsDataAccess da, INotificationsService notifications)
 {
     _dataAccess = da;
     _notificationService = notifications;
 }
Example #44
0
 public OrdersService(IDbRepository<Order> orders, INotificationsService notificationsService, ITicketsService ticketsService)
 {
     this.orders = orders;
     this.notificationsService = notificationsService;
     this.ticketsService = ticketsService;
 }
 public NotificationsController(INotificationsService service)
 {
     _service = service;
 }
Example #46
0
 public UsersService(IUsersDataAccess da, ICustomAuthenticationDataAccess customAuthenticationDa, INotificationsService notificationService)
 {
     _dataAccess = da;
     _customAuthenticationDataAccess = customAuthenticationDa;
     _notificationService = notificationService;
 }
Example #47
0
 public ErrorHandler(INotificationsService notificationsService)
 {
     _notificationsService = notificationsService;
 }