Beispiel #1
0
 public CheckReminders(IReminderRepository repo, IMailer mailer
                       , ILogger <CheckReminders> logger)
 {
     _repo   = repo;
     _mailer = mailer;
     _logger = logger;
 }
Beispiel #2
0
 public ReminderCommandHandler(IReminderRepository reminderRepository, IMapper mapper, IIdentityService identityService, IMediator mediator, IUnitOfWork <ICommunityDbContext> unitOfWork, ILogger <ReminderCommandHandler> logger)
     : base(identityService, mediator, unitOfWork, logger)
 {
     _reminderRepository = reminderRepository;
     _mapper             = mapper;
     _currentProfileId   = GetCurrentProfileId();
 }
 public BalingStationRepository(DatabaseContext dbContext, IReminderRepository reminderRepository, IAppConfigRepository appConfigRepository, IConfiguration configuration)
 {
     this.dbContext           = dbContext;
     this.reminderRepository  = reminderRepository;
     this.appConfigRepository = appConfigRepository;
     this.configuration       = configuration;
 }
 public PopulateSampleData(IVehicleRepository vehicles, IVehiclePhotoRepository photos, IUserRepository users, IReminderRepository reminders, IFillupRepository fillups)
 {
     _vehicles  = vehicles;
     _photos    = photos;
     _users     = users;
     _reminders = reminders;
     _fillups   = fillups;
 }
        //TODO: addunit of work private readonly IUnitOfWork _unitOfWork;

        public RemindersController(
            IReminderRepository reminderRepository,
            IReminderJobRepository reminderJobRepository
            )
        {
            _reminderRepository    = reminderRepository;
            _reminderJobRepository = reminderJobRepository;
        }
 public PopulateSampleData(IVehicleRepository vehicles, IVehiclePhotoRepository photos, IUserRepository users, IReminderRepository reminders, IFillupRepository fillups)
 {
     _vehicles = vehicles;
     _photos = photos;
     _users = users;
     _reminders = reminders;
     _fillups = fillups;
 }
Beispiel #7
0
        public ReminderModule(IReminderRepository reminderRepository, DiscordSocketClient client)
        {
            _reminderRepository = reminderRepository;
            _client             = client;
            Timer t = new Timer(1000 * 60);

            t.Elapsed += CheckForReminders;
            t.Start();
        }
Beispiel #8
0
 public ReminderService(IReminderRepository reminderRepository,
                        ICalendarService calendarService,
                        IButler butler,
                        IOptions <CalendarConfigurationOptions> optionsAccessor)
 {
     this.reminderRepository = reminderRepository;
     this.calendarService    = calendarService;
     this.butler             = butler;
     options = optionsAccessor.Value;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReminderController"/> class.
 /// </summary>
 /// <param name="reminderRepository">
 /// The reminder repository.
 /// </param>
 /// <param name="userRepository">
 /// The user repository.
 /// </param>
 /// <param name="taskProcessor">
 /// The task processor.
 /// </param>
 public ReminderController(
     IReminderRepository reminderRepository,
     IUserRepository userRepository,
     ITaskProcessor taskProcessor,
     IReminderProcessor reminderProcessor)
 {
     this.reminderRepository = reminderRepository;
     this.userRepository = userRepository;
     this.taskProcessor = taskProcessor;
     this.reminderProcessor = reminderProcessor;
 }
Beispiel #10
0
 public ReminderService(
     IReminderRepository reminderRepository,
     IncrementService incrementService,
     AuthRepository authRepository,
     AppointmentService appointmentService)
 {
     _reminderRepository     = reminderRepository;
     _authRepository         = authRepository;
     this.incrementService   = incrementService;
     this.appointmentService = appointmentService;
 }
Beispiel #11
0
 public ReminderService(
     IReminderRepository reminderRepository,
     UserManager <AppUser> userManager,
     IEmailService emailService,
     IViewRenderService viewRenderService)
 {
     _reminderRepository = reminderRepository;
     _userManager        = userManager;
     _emailService       = emailService;
     _viewRenderService  = viewRenderService;
 }
 public BaleRepository(DatabaseContext dbContext,
                       ICategoryRepository catRepository,
                       IBalingStationRepository baleStationRepository,
                       IProductRepository productRepository,
                       IReminderRepository reminderRepository)
 {
     this.dbContext             = dbContext;
     this.catRepository         = catRepository;
     this.baleStationRepository = baleStationRepository;
     this.productRepository     = productRepository;
     this.reminderRepository    = reminderRepository;
 }
Beispiel #13
0
 public ReminderService(
     IReminderRepository reminderRepository,
     IAuthenticationService authenticationService,
     IInstanceRepository instanceRepository,
     IApplicationSetting applicationSetting,
     IUserValidationService userValidationService)
 {
     this._reminderRepository    = reminderRepository;
     this._authenticationService = authenticationService;
     this._instanceRepository    = instanceRepository;
     this._applicationSetting    = applicationSetting;
     this._userValidationService = userValidationService;
 }
 public HomeController(
     IUserRepository userRepository,
     ICategoryRepository categoryRepository,
     ITaskRepository taskRepository,
     IBoardRepository boardRepository,
     IReminderRepository reminderRepository)
 {
     _userRepository = userRepository;
     _categoryRepository = categoryRepository;
     _taskRepository = taskRepository;
     _boardRepository = boardRepository;
     _reminderRepository = reminderRepository;
 }
 public HomeController(
     IUserRepository userRepository,
     ICategoryRepository categoryRepository,
     ITaskRepository taskRepository,
     IBoardRepository boardRepository,
     IReminderRepository reminderRepository)
 {
     _userRepository     = userRepository;
     _categoryRepository = categoryRepository;
     _taskRepository     = taskRepository;
     _boardRepository    = boardRepository;
     _reminderRepository = reminderRepository;
 }
Beispiel #16
0
        public UnitOfWork(DbContext dbContext)
        {
            _dbContext = dbContext;

            // Each repo will share the db context:
            _configRepository   = new ConfigRepository(_dbContext);
            _commandRepository  = new CommandRepository(_dbContext);
            _moduleRepository   = new ModuleRepository(_dbContext);
            _reminderRepository = new ReminderRepository(_dbContext);
            _eventRepository    = new EventRepository(_dbContext);
            _playlistRepository = new PlaylistRepository(_dbContext);
            _links     = new LinkRepository(_dbContext);
            _bdoStatus = new BdoStatusRepository(_dbContext);
        }
        public NotificationManager(IReminderRepository reminderRepository, IScheduleRepository scheduleRepository)
        {
            _remindersNotificationList = new Dictionary <int, Timer>();
            _schedulesNotificationList = new Dictionary <int, Timer>();
            _scheduleRepository        = scheduleRepository;
            _reminderRepository        = reminderRepository;
            LoadSchedulesAndReminders();
            BindingOperations.EnableCollectionSynchronization(Schedules, _lock);
            BindingOperations.EnableCollectionSynchronization(Reminders, _lock);
            BindingOperations.EnableCollectionSynchronization(_remindersNotificationList, _lock);
            BindingOperations.EnableCollectionSynchronization(_schedulesNotificationList, _lock);


            updateTasksToNotifyList();
        }
 public IndexModel(ILogger <IndexModel> logger, IReminderRepository reminderRepository)
 {
     _logger = logger;
     _reminderRespository = reminderRepository;
 }
Beispiel #19
0
 public RemindersController(IReminderRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Beispiel #20
0
 public CalibrationRepository(DatabaseContext dbContext, IReminderRepository reminderRepository)
 {
     this.dbContext          = dbContext;
     this.reminderRepository = reminderRepository;
 }
Beispiel #21
0
 public HomeController(ILogger <HomeController> logger, IReminderRepository reminderRepository)
 {
     _logger             = logger;
     _reminderRepository = reminderRepository;
 }
 public GetImminentRemindersForUser(IVehicleRepository vehicleRepository, IReminderRepository reminderRepository)
 {
     _vehicleRepository = vehicleRepository;
     _reminderRepository = reminderRepository;
 }
Beispiel #23
0
 public ReminderModule(IReminderRepository remindRepo, InteractiveService interactiveService)
 {
     _remindRepo         = remindRepo;
     _interactiveService = interactiveService;
 }
Beispiel #24
0
 public ReminderAppService(IReminderRepository reminderRepository)
 {
     this._reminderRepository = reminderRepository;
 }
 public AddReminderToVehicle(IVehicleRepository vehicleRepository, IReminderRepository reminderRepository)
 {
     _vehicleRepository  = vehicleRepository;
     _reminderRepository = reminderRepository;
 }
Beispiel #26
0
 public GetReminder(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }
 public RemindersController(ILogger <RemindersController> logger, IReminderRepository reminderRepository)
 {
     this.reminderRepository = reminderRepository;
     this.logger             = logger;
 }
 public GetUnfulfilledRemindersForVehicle(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }
 public GetOverdueRemindersForUser(IVehicleRepository vehicleRepository, IReminderRepository reminderRepository)
 {
     _vehicleRepository = vehicleRepository;
     _reminderRepository = reminderRepository;
 }
 public FulfillReminder(IReminderRepository reminderRepository, IVehicleRepository vehicleRepository)
 {
     _reminderRepository = reminderRepository;
     _vehicleRepository = vehicleRepository;
 }
 public GetAllRemindersForVehicle(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }
 public ReminderService(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }
 public DeleteReminder(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }
 public AddReminderToVehicle(IVehicleRepository vehicleRepository, IReminderRepository reminderRepository)
 {
     _vehicleRepository = vehicleRepository;
     _reminderRepository = reminderRepository;
 }
 public FulfillReminder(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }
 public FulfillReminder(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }
Beispiel #37
0
 public ReminderService(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }
Beispiel #38
0
 public ReminderController(IReminderRepository repo, IUnitOfWork unitOfWork)
 {
     _repo       = repo;
     _unitOfWork = unitOfWork;
 }
 public GetReminder(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }
 public GetImminentRemindersForUser(IVehicleRepository vehicleRepository, IReminderRepository reminderRepository, IFillupRepository fillupRepository)
 {
     _vehicleRepository  = vehicleRepository;
     _reminderRepository = reminderRepository;
     _fillupRepository   = fillupRepository;
 }
Beispiel #41
0
 public BusinessLicenseRepository(DatabaseContext dbContext, IReminderRepository reminderRepository)
 {
     this.dbContext          = dbContext;
     this.reminderRepository = reminderRepository;
 }
 public ToDoController(IToDoRepository _toDorepository, ITaskRepository _taskRepository, IReminderRepository _reminderRepository)
 {
     toDoRepository     = _toDorepository;
     taskRepository     = _taskRepository;
     reminderRepository = _reminderRepository;
 }
 public ReminderProcessor(IReminderRepository reminderRepository)
 {
     this.reminderRepository = reminderRepository;
 }
 public GetOverdueRemindersForVehicle(IReminderRepository reminderRepository)
 {
     _reminderRepository = reminderRepository;
 }