Ejemplo n.º 1
0
 public SmallSyncJob(IJobHubHelper hubHelper, IJobRepository jobRepository, ISettingsService settingsService,
                     IMediaServerService mediaServerService)
     : base(hubHelper, jobRepository, settingsService, typeof(SmallSyncJob), Constants.LogPrefix.SmallMediaServerSyncJob)
 {
     _mediaServerService = mediaServerService;
     Title = jobRepository.GetById(Id).Title;
 }
Ejemplo n.º 2
0
 public PingEmbyJob(IJobHubHelper hubHelper, IJobRepository jobRepository, ISettingsService settingsService,
                    IMediaServerService mediaServerService)
     : base(hubHelper, jobRepository, settingsService, false, typeof(PingEmbyJob), Constants.LogPrefix.PingMediaServerJob)
 {
     _mediaServerService = mediaServerService;
     Title = jobRepository.GetById(Id).Title;
 }
Ejemplo n.º 3
0
 public DatabaseCleanupJob(IJobHubHelper hubHelper, IJobRepository jobRepository, ISettingsService settingsService,
                           IStatisticsRepository statisticsRepository)
     : base(hubHelper, jobRepository, settingsService, typeof(DatabaseCleanupJob), Constants.LogPrefix.DatabaseCleanupJob)
 {
     _statisticsRepository = statisticsRepository;
     Title = jobRepository.GetById(Id).Title;
 }
Ejemplo n.º 4
0
 public CheckUpdateJob(IJobHubHelper hubHelper, IJobRepository jobRepository,
                       ISettingsService settingsService, IUpdateService updateService)
     : base(hubHelper, jobRepository, settingsService, typeof(CheckUpdateJob), Constants.LogPrefix.CheckUpdateJob)
 {
     _updateService   = updateService;
     _settingsService = settingsService;
     Title            = jobRepository.GetById(Id).Title;
 }
Ejemplo n.º 5
0
 protected BaseJob(IJobHubHelper hubHelper, IJobRepository jobRepository, ISettingsService settingsService, bool enableUiLogging, Type type, string prefix)
 {
     HubHelper       = hubHelper;
     _jobRepository  = jobRepository;
     Settings        = settingsService.GetUserSettings();
     SettingsService = settingsService;
     EnableUiLogging = enableUiLogging;
     Logger          = LogFactory.CreateLoggerForType(type, prefix);
 }
Ejemplo n.º 6
0
 public JobController(IMapper mapper, IJobService jobService, IJobHubHelper jobHubHelper,
                      IJobInitializer jobInitializer, ISettingsService settingsService)
 {
     _mapper          = mapper;
     _jobService      = jobService;
     _jobHubHelper    = jobHubHelper;
     _jobInitializer  = jobInitializer;
     _settingsService = settingsService;
 }
Ejemplo n.º 7
0
        public MediaSyncJob(IJobHubHelper hubHelper, IJobRepository jobRepository, ISettingsService settingsService,
                            IClientStrategy clientStrategy, IMovieRepository movieRepository, IShowRepository showRepository,
                            ILibraryRepository libraryRepository, ITvdbClient tvdbClient, IStatisticsRepository statisticsRepository,
                            IMovieService movieService, IShowService showService) : base(hubHelper, jobRepository, settingsService,
                                                                                         typeof(MediaSyncJob), Constants.LogPrefix.MediaSyncJob)
        {
            _movieRepository      = movieRepository;
            _showRepository       = showRepository;
            _libraryRepository    = libraryRepository;
            _tvdbClient           = tvdbClient;
            _statisticsRepository = statisticsRepository;
            _movieService         = movieService;
            _showService          = showService;
            Title = jobRepository.GetById(Id).Title;

            var settings = settingsService.GetUserSettings();

            _httpClient = clientStrategy.CreateHttpClient(settings.MediaServer?.ServerType ?? ServerType.Emby);
        }
Ejemplo n.º 8
0
 protected BaseJob(IJobHubHelper hubHelper, IJobRepository jobRepository, ISettingsService settingsService, Type type, string prefix)
     : this(hubHelper, jobRepository, settingsService, true, type, prefix)
 {
 }