Пример #1
0
 public UploadService(IOptions <VideoServerOptions> options, VideoCdnDbContext dbContext,
                      ChunkedUploadsCollection chunkedInProgress)
 {
     _options           = options.Value;
     _dbContext         = dbContext;
     _chunkedInProgress = chunkedInProgress;
 }
Пример #2
0
 public StatsController(IOptions <VideoServerOptions> options, IMemoryCache memoryCache,
                        VideoCdnDbContext dbContext, ISettingsService <VideoCdnSettings> settingsService)
 {
     _options         = options.Value;
     _memoryCache     = memoryCache;
     _dbContext       = dbContext;
     _settingsService = settingsService;
 }
Пример #3
0
 public CatalogController(VideoCdnDbContext dbContext, IVideoTokenService tokenService,
                          ISettingsService <VideoCdnSettings> settingsService, IVideoEncodingService encodingService)
 {
     _dbContext       = dbContext;
     _tokenService    = tokenService;
     _settingsService = settingsService;
     _encodingService = encodingService;
 }
Пример #4
0
 public VideoEncodingService(IVideoEncodingQueue queue, ISettingsService <VideoCdnSettings> settingsService,
                             VideoCdnDbContext dbContext, IOptions <VideoServerOptions> options)
 {
     _queue           = queue;
     _settingsService = settingsService;
     _dbContext       = dbContext;
     _options         = options.Value;
 }
Пример #5
0
 public StartupSetup(ILogger <StartupSetup> logger, IOptions <VideoServerOptions> options, VideoCdnDbContext dbContext,
                     UserManager <VideoCdnUser> userManager, RoleManager <IdentityRole <int> > roleManager, IOptions <AdminOptions> adminOptions)
 {
     this.logger       = logger;
     this.options      = options.Value;
     this.dbContext    = dbContext;
     this.userManager  = userManager;
     this.roleManager  = roleManager;
     this.adminOptions = adminOptions.Value;
 }
Пример #6
0
 public WatchCounterService(VideoCdnDbContext dbContext, IMemoryCache memoryCache)
 {
     _dbContext   = dbContext;
     _memoryCache = memoryCache;
 }