예제 #1
0
 public HomeController(
     IOptions <AzureStorageSettings> azureSettings,
     IAzureFileHandlerFactory azureFileHandlerFactory,
     IDistributedCache cache,
     IOptions <ApiSettings> apiSettings)
 {
     _cache                   = cache;
     _azureSettings           = azureSettings.Value;
     _azureFileHandlerFactory = azureFileHandlerFactory;
     _apiSettings             = apiSettings.Value;
 }
예제 #2
0
 /// <summary>
 /// Images controller constructor
 /// passing dependencies through DI
 /// </summary>
 /// <param name="azureFileHandlerFactory">Azure File Handler Factory</param>
 /// <param name="azureSettings">Azure Settings</param>
 public VideosController(
     IAzureFileHandlerFactory azureFileHandlerFactory,
     IUserFactory userFactory,
     ApplicationDbContext context,
     IOptions <KairosSettings> kairosSettings,
     IOptions <AzureStorageSettings> azureSettings)
 {
     _azureFileHandlerFactory = azureFileHandlerFactory;
     _azureSettings           = azureSettings.Value;
     _unitOfWork     = new UnitOfWork(context);
     _kairosSettings = kairosSettings.Value;
     _userFactory    = userFactory;
     _videoAnalizer  = new VideoAnalizer(
         _kairosSettings.Id,
         _kairosSettings.Key,
         _kairosSettings.MediaUrl,
         _kairosSettings.AnalyticsUrl);
 }