コード例 #1
0
 public CommandController(IOptions <ElasticConfig> config,
                          ILoggerFactory loggerFactory,
                          IElasticConnectionClient elasticConnectionClient,
                          SynkerDbContext context)
     : base(config, loggerFactory, elasticConnectionClient, context)
 {
 }
コード例 #2
0
ファイル: MediaRefService.cs プロジェクト: Fazzani/Synker2
 public MediaRefService(SynkerDbContext synkerDbContext, IElasticConnectionClient elasticConnectionClient,
                        ILoggerFactory loggerFactory)
 {
     _dbcontext = synkerDbContext;
     _elasticConnectionClient = elasticConnectionClient;
     _logger = loggerFactory.CreateLogger(nameof(MediaRefService));
 }
コード例 #3
0
 public NotificationController(IMessageQueueService notificationService, IOptions <ElasticConfig> config, ILoggerFactory loggerFactory,
                               IElasticConnectionClient elasticConnectionClient, SynkerDbContext context, IHubContext <NotificationHub> notifcationHubContext, IOptions <VapidKeysOptions> vapidKeysOptions)
     : base(config, loggerFactory, elasticConnectionClient, context)
 {
     _notificationService   = notificationService ?? throw new ArgumentNullException(nameof(notificationService));
     _vapidKeysConfig       = vapidKeysOptions.Value;
     _notifcationHubContext = notifcationHubContext;
 }
コード例 #4
0
 public BaseController(IOptions <ElasticConfig> elasticConfig, ILoggerFactory loggerFactory, IElasticConnectionClient elasticConnectionClient,
                       SynkerDbContext context)
 {
     _logger = loggerFactory.CreateLogger(nameof(BaseController));
     _elasticConnectionClient = elasticConnectionClient;
     _elasticConfig           = elasticConfig.Value;
     _dbContext = context;
 }
コード例 #5
0
ファイル: SitePackController.cs プロジェクト: Fazzani/Synker2
 public SitePackController(IMemoryCache memoryCache, ISitePackService sitePackService, IOptions <ElasticConfig> config, ILoggerFactory loggerFactory,
                           IElasticConnectionClient elasticConnectionClient, SynkerDbContext context, IPasteBinService pasteBinService)
     : base(config, loggerFactory, elasticConnectionClient, context)
 {
     _memoryCache     = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
     _sitePackService = sitePackService ?? throw new ArgumentNullException(nameof(sitePackService));
     _pasteBinService = pasteBinService ?? throw new ArgumentNullException(nameof(pasteBinService));
 }
コード例 #6
0
 public PiconsController(IPiconsService piconsService, IOptions <ElasticConfig> config, ILoggerFactory loggerFactory,
                         IElasticConnectionClient elasticConnectionClient, SynkerDbContext context, IMediaScraper mediaScraper, IOptions <GlobalOptions> globalOptions)
     : base(config, loggerFactory, elasticConnectionClient, context)
 {
     _piconsService = piconsService ?? throw new ArgumentNullException(nameof(piconsService));
     _mediaScraper  = mediaScraper ?? throw new ArgumentNullException(nameof(mediaScraper));
     _globalOptions = globalOptions.Value ?? throw new ArgumentNullException(nameof(globalOptions));
 }
コード例 #7
0
ファイル: PlaylistService.cs プロジェクト: Fazzani/Synker2
 public PlaylistService(SynkerDbContext synkerDbContext, IElasticConnectionClient elasticConnectionClient,
                        IContextTvgMediaHandler contextHandler, ILoggerFactory loggerFactory, IOptions <ElasticConfig> elasticConfig, ISitePackService sitePackService, IProviderFactory providerFactory)
 {
     _dbcontext = synkerDbContext;
     _elasticConnectionClient = elasticConnectionClient;
     _contextHandler          = contextHandler;
     _logger          = loggerFactory.CreateLogger(nameof(PlaylistService));
     _elasticConfig   = elasticConfig;
     _sitePackService = sitePackService;
     _providerFactory = providerFactory;
 }
コード例 #8
0
 public MediaServerController(IOptions <ElasticConfig> config,
                              MediaServerService mediaServerService,
                              IOptions <MediaServerOptions> mediaServerOptions,
                              ILoggerFactory loggerFactory,
                              IElasticConnectionClient elasticConnectionClient,
                              SynkerDbContext context)
     : base(config, loggerFactory, elasticConnectionClient, context)
 {
     _mediaServerService = mediaServerService;
     _mediaServerOptions = mediaServerOptions;
 }
コード例 #9
0
 public PlaylistsController(IMemoryCache memoryCache, IMediaScraper mediaScraper, IOptions <ElasticConfig> config, ILoggerFactory loggerFactory, IOptions <GlobalOptions> globalOptions,
                            IElasticConnectionClient elasticConnectionClient, SynkerDbContext context, IPlaylistService playlistService, ISitePackService sitePackService, IXtreamService xtreamService,
                            IProviderFactory providerFactory)
     : base(config, loggerFactory, elasticConnectionClient, context)
 {
     _playlistService = playlistService ?? throw new ArgumentNullException(nameof(playlistService));
     _mediaScraper    = mediaScraper ?? throw new ArgumentNullException(nameof(mediaScraper));
     _memoryCache     = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache));
     _sitePackService = sitePackService ?? throw new ArgumentNullException(nameof(sitePackService));
     _globalOptions   = globalOptions.Value ?? throw new ArgumentNullException(nameof(globalOptions));
     _xtreamService   = xtreamService ?? throw new ArgumentNullException(nameof(xtreamService));
     _providerFactory = providerFactory ?? throw new ArgumentNullException(nameof(providerFactory));
 }
コード例 #10
0
ファイル: PiconsService.cs プロジェクト: Fazzani/Synker2
 public PiconsService(IElasticConnectionClient elasticConnectionClient, ILoggerFactory loggerFactory, IOptions <ElasticConfig> elasticConfig)
 {
     _elasticConnectionClient = elasticConnectionClient;
     _logger        = loggerFactory.CreateLogger(nameof(PiconsService));
     _elasticConfig = elasticConfig;
 }
コード例 #11
0
ファイル: TvgMediaController.cs プロジェクト: Fazzani/Synker2
 public TvgMediaController(IOptions <ElasticConfig> config, ILoggerFactory loggerFactory, IElasticConnectionClient elasticConnectionClient,
                           SynkerDbContext context, ISitePackService sitePackService)
     : base(config, loggerFactory, elasticConnectionClient, context)
 {
     _sitePackService = sitePackService ?? throw new ArgumentNullException(nameof(sitePackService));
 }
コード例 #12
0
 public XtreamController(IXtreamService xtreamService, IOptions <ElasticConfig> config, ILoggerFactory loggerFactory,
                         IElasticConnectionClient elasticConnectionClient, SynkerDbContext context)
     : base(config, loggerFactory, elasticConnectionClient, context)
 {
     _xtreamService = xtreamService ?? throw new ArgumentNullException(nameof(xtreamService));
 }
コード例 #13
0
 public ContextTvgMediaHandler(IElasticConnectionClient elasticConnectionClient)
 {
     LastLang = "Ar";
     _elasticConnectionClient = elasticConnectionClient;
 }