public TvSender(ISonarrApi sonarrApi, ISonarrV3Api sonarrV3Api, ILogger <TvSender> log, ISettingsService <SonarrSettings> sonarrSettings, ISettingsService <DogNzbSettings> dog, IDogNzbApi dogApi, ISettingsService <SickRageSettings> srSettings, ISickRageApi srApi, IRepository <UserQualityProfiles> userProfiles, IRepository <RequestQueue> requestQueue, INotificationHelper notify) { SonarrApi = sonarrApi; SonarrV3Api = sonarrV3Api; Logger = log; SonarrSettings = sonarrSettings; DogNzbSettings = dog; DogNzbApi = dogApi; SickRageSettings = srSettings; SickRageApi = srApi; UserQualityProfiles = userProfiles; _requestQueueRepository = requestQueue; _notificationHelper = notify; }
public MainWindow(ICleanProjectService service, INotificationHelper notificatior) { InitializeComponent(); this._service = service; var wpfNotificatior = notificatior as Notificator; wpfNotificatior.Initialize(this.TextBlockStatus, Dispatcher, true); this._notificatior = wpfNotificatior; this.Title = CleanProjectService.TITLE; this.ZipProject.IsChecked = true; this.SourceControl.IsChecked = false; this.ShowAllMessages.IsChecked = false; }
public AccountController( ICountryRepository countryRepository, IUserHelper userHelper, IConfiguration configuration, IMailHelper mailHelper, IClientRepository clientRepository, IClientConverterHelper converterHelper, INotificationHelper notificationHelper) { _countryRepository = countryRepository; _userHelper = userHelper; _configuration = configuration; _mailHelper = mailHelper; _clientRepository = clientRepository; _converterHelper = converterHelper; _notificationHelper = notificationHelper; }
/// <summary> /// Initializes a new instance of the <see cref="BackgroundNotificationHelper"/> class. /// BackgroundService class that inherits IHostedService and implements the methods related to sending notification tasks. /// </summary> /// <param name="logger">Instance to send logs to the Application Insights service.</param> /// <param name="notificationHelper">Helper to send notification in channels.</param> /// <param name="userEventSearchService">The user event search service to generate query and fetch results.</param> /// <param name="botOptions">A set of key/value application configuration properties for activity settings</param> /// <param name="localizer">The current culture's string localizer</param> /// <param name="userConfigurationRepository">The user repository for user related operations on storage</param> /// <param name="categoryHelper">Category helper to fetch and bind category name by Id.</param> public BackgroundNotificationHelper( ILogger <BackgroundNotificationHelper> logger, INotificationHelper notificationHelper, IUserEventSearchService userEventSearchService, IOptions <BotSettings> botOptions, IStringLocalizer <Strings> localizer, IUserConfigurationRepository userConfigurationRepository, ICategoryHelper categoryHelper) { this.logger = logger; this.notificationHelper = notificationHelper; this.userEventSearchService = userEventSearchService; this.botOptions = botOptions; this.localizer = localizer; this.userConfigurationRepository = userConfigurationRepository; this.categoryHelper = categoryHelper; }
public MovieSender(ISettingsService <RadarrSettings> radarrSettings, ISettingsService <Radarr4KSettings> radarr4kSettings, ILogger <MovieSender> log, ISettingsService <DogNzbSettings> dogSettings, IDogNzbApi dogApi, ISettingsService <CouchPotatoSettings> cpSettings, ICouchPotatoApi cpApi, IRepository <UserQualityProfiles> userProfiles, IRepository <RequestQueue> requestQueue, INotificationHelper notify, IRadarrV3Api radarrV3Api) { _radarrSettings = radarrSettings; _log = log; _dogNzbSettings = dogSettings; _dogNzbApi = dogApi; _couchPotatoSettings = cpSettings; _couchPotatoApi = cpApi; _userProfiles = userProfiles; _requestQueuRepository = requestQueue; _notificationHelper = notify; _radarrV3Api = radarrV3Api; _radarr4KSettings = radarr4kSettings; }
/// <summary> /// Initializes a new instance of the <see cref="TimesheetHelper"/> class. /// </summary> /// <param name="botOptions">A set of key/value application configuration properties.</param> /// <param name="repositoryAccessors">The instance of repository accessors.</param> /// <param name="timesheetMapper">The instance of timesheet mapper.</param> /// <param name="notificationHelper">Notification helper instance to send notifications to user.</param> /// <param name="adaptiveCardService">Instance of adaptive card service to construct notification cards.</param> /// <param name="logger">The ILogger object which logs errors and information.</param> public TimesheetHelper( IOptions <BotSettings> botOptions, IRepositoryAccessors repositoryAccessors, ITimesheetMapper timesheetMapper, INotificationHelper notificationHelper, IAdaptiveCardService adaptiveCardService, ILogger <TimesheetHelper> logger) { this.repositoryAccessors = repositoryAccessors; this.timesheetMapper = timesheetMapper; this.notificationHelper = notificationHelper; this.adaptiveCardService = adaptiveCardService; this.logger = logger; this.notificationHelper = notificationHelper; this.adaptiveCardService = adaptiveCardService; this.botOptions = botOptions; }
public UserController(IPremiumRepository premiumRepository, IUserHelper userHelper, IConverterHelper converter, IPartnerRepository partnerRepository, IAdvertisingRepository advertisingRepository, IFlightRepository flightRepository, INotificationHelper notificationHelper, IImageHelper imageHelper) { _premiumRepository = premiumRepository; _userHelper = userHelper; _converter = converter; _partnerRepository = partnerRepository; _advertisingRepository = advertisingRepository; _flightRepository = flightRepository; _notificationHelper = notificationHelper; _imageHelper = imageHelper; }
/// <summary> /// Constructor /// </summary> public App() { InitializeComponent(); // Create logger Log = DependencyService.Get <ILog>(); // Create notification helper NotificationHelper = DependencyService.Get <INotificationHelper>(); // Geolocation controller // Not user specific and takes some time so created early GeolocationController = new GeolocationController(); // Create master controller MasterController = new MasterController(); // Open Login View MainPage = new NavigationPage(new LoginView()); }
public ArrAvailabilityChecker( IExternalRepository <RadarrCache> radarrRepo, IExternalRepository <SonarrCache> sonarrRepo, IExternalRepository <SonarrEpisodeCache> sonarrEpisodeRepo, INotificationHelper notification, IHubContext <NotificationHub> hub, ITvRequestRepository tvRequest, IMovieRequestRepository movies, ILogger <ArrAvailabilityChecker> log, ISettingsService <RadarrSettings> radarrSettings, ISettingsService <SonarrSettings> sonarrSettings) { _radarrRepo = radarrRepo; _sonarrRepo = sonarrRepo; _sonarrEpisodeRepo = sonarrEpisodeRepo; _notification = notification; _hub = hub; _tvRequest = tvRequest; _movies = movies; _logger = log; _radarrSettings = radarrSettings; _sonarrSettings = sonarrSettings; }
public SuperUserController(IUserHelper userHelper, IAdvertisingRepository advertisingRepository, IMailHelper mailHelper, IConverterHelper converterHelper, ITierChangeRepository tierChangeRepository, IComplaintRepository clientComplaintRepository, IFlightRepository flightRepository, IPremiumRepository premiumRepository, IPartnerRepository partnerRepository, INotificationHelper notificationHelper) { _userHelper = userHelper; _advertisingRepository = advertisingRepository; _mailHelper = mailHelper; _converterHelper = converterHelper; _tierChangeRepository = tierChangeRepository; _clientComplaintRepository = clientComplaintRepository; _flightRepository = flightRepository; _premiumRepository = premiumRepository; _partnerRepository = partnerRepository; _notificationHelper = notificationHelper; }
/// <summary> /// Initializes a new instance of the <see cref="UserEventsHelper"/> class. /// </summary> /// <param name="eventRepository">Provides the methods for event related operations on storage.</param> /// <param name="eventSearchService">Search service to filter and search events.</param> /// <param name="userEventSearchService">Search service to filter and search events for end user.</param> /// <param name="userGraphHelper">Helper to use Microsoft Graph users api.</param> /// <param name="eventGraphHelper">Helper to use Microsoft Graph events api.</param> /// <param name="notificationHelper">Helper to send notifications to user and team.</param> /// <param name="categoryHelper">Helper to bind category name by Id.</param> /// <param name="lnDTeamConfigurationRepository">Team configuration repository for storing and updating team information.</param> /// <param name="botOptions">Represents a set of key/value application configuration properties for bot.</param> /// <param name="localizer">The current culture's string localizer.</param> public UserEventsHelper( IEventRepository eventRepository, IEventSearchService eventSearchService, IUserEventSearchService userEventSearchService, IUserGraphHelper userGraphHelper, IEventGraphHelper eventGraphHelper, INotificationHelper notificationHelper, ICategoryHelper categoryHelper, ILnDTeamConfigurationRepository lnDTeamConfigurationRepository, IOptions <BotSettings> botOptions, IStringLocalizer <Strings> localizer) { this.eventRepository = eventRepository; this.eventSearchService = eventSearchService; this.userEventSearchService = userEventSearchService; this.userGraphHelper = userGraphHelper; this.eventGraphHelper = eventGraphHelper; this.notificationHelper = notificationHelper; this.categoryHelper = categoryHelper; this.lnDTeamConfigurationRepository = lnDTeamConfigurationRepository; this.botOptions = botOptions; this.localizer = localizer; }
public RemoveSourceControlBindings(INotificationHelper notificationHelper, IFileHelper fileHelper) { this._notificationHelper = notificationHelper; this._fileHelper = fileHelper; }
public NotificationController() { LoginStdAdmissionNo = RequestContext.Principal.Identity.Name; NotificationHelper = new NotificationHelper(ConnectionStringNames.DBEntityName); }
public LidarrAvailabilityChecker(IMusicRequestRepository requests, IRepository <LidarrAlbumCache> albums, ILogger <LidarrAvailabilityChecker> log, INotificationHelper notification) { _cachedAlbums = albums; _requestRepository = requests; _logger = log; _notificationService = notification; }
public SolutionCleaner(IDirectoryHelper directoryHelper, IFileHelper fileHelper, IOptions options, IRemoveSourceControlBindings removeSourceControlBindings, INotificationHelper notificationHelper) { this._directoryHelper = directoryHelper; this._fileHelper = fileHelper; this._removeSourceControlBindings = removeSourceControlBindings; this._options = options; this._notificationHelper = notificationHelper; }
public FileHelper(INotificationHelper notificationHelper) { this._notificationHelper = notificationHelper; }
public NotificationService(AppDbContext dbContext, IMapper mapper, INotificationHelper notificationHelper) { _dbContext = dbContext; _mapper = mapper; this.notificationHelper = notificationHelper; }
public ZipHelper(INotificationHelper notificationHelper, IDirectoryHelper directoryHelper) { this._notificationHelper = notificationHelper; this._directoryHelper = directoryHelper; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationBackgroundService"/> class. /// BackgroundService class that inherits IHostedService and implements the methods related to sending notification tasks. /// </summary> /// <param name="logger">Instance to send logs to the Application Insights service.</param> /// <param name="notificationHelper">Helper to send notification in channel.</param> /// <param name="backgroundTaskWrapper">Wrapper class instance for BackgroundTask.</param> public NotificationBackgroundService(ILogger <NotificationBackgroundService> logger, INotificationHelper notificationHelper, BackgroundTaskWrapper backgroundTaskWrapper) { this.logger = logger; this.expression = CronExpression.Parse("0 10,17 * * *"); this.timeZoneInfo = TimeZoneInfo.Utc; this.notificationHelper = notificationHelper; this.backgroundTaskWrapper = backgroundTaskWrapper; }
public FriendRequestService(AppDbContext dbContext, IMapper mapper, IMessageService messageService, INotificationService notificationService, INotificationHelper helper) { _dbContext = dbContext; _mapper = mapper; this.messageService = messageService; this._notificationService = notificationService; this.helper = helper; }
/// <summary> /// Initializes a new instance of the <see cref="NotificationBackgroundService"/> class. /// BackgroundService class that inherits IHostedService and implements the methods related to notification. /// </summary> /// <param name="logger">Instance to send logs to the Application Insights service.</param> /// <param name="notificationHelper">Helper to send notification.</param> public NotificationBackgroundService(ILogger <NotificationBackgroundService> logger, INotificationHelper notificationHelper) { this.logger = logger; this.expression = CronExpression.Parse("0 12 * * *"); // schedule to run at 12 AM everyday this.timeZoneInfo = TimeZoneInfo.Utc; this.notificationHelper = notificationHelper; }
public NotificationRepository(IOptions <TwilioAccountDetails> twilioAccountDetails, IUserRepository userRepo, ISettingsRepository settingsRepo, INotificationHelper notificationHelper, ILogger <NotificationRepository> logger, IDepartmentRepository deptRepo, IOrganizationRepository orgRepo, IMailerRepository mailerRepo) { _twilioAccountDetails = twilioAccountDetails.Value ?? throw new ArgumentException(nameof(twilioAccountDetails)); _userRepo = userRepo; _settingsRepo = settingsRepo; _notificationHelper = notificationHelper; _logger = logger; _deptRepo = deptRepo; _orgRepo = orgRepo; _mailerRepo = mailerRepo; }
public DirectoryHelper(INotificationHelper notificationHelper, IFileHelper fileHelper) { this._notificationHelper = notificationHelper; this._fileHelper = fileHelper; }