예제 #1
0
 public CustomFormatService(ICustomFormatRepository formatRepository,
                            ICacheManager cacheManager,
                            IEventAggregator eventAggregator)
 {
     _formatRepository = formatRepository;
     _eventAggregator  = eventAggregator;
     _cache            = cacheManager.GetCache <Dictionary <int, CustomFormat> >(typeof(CustomFormat), "formats");
 }
예제 #2
0
 public CustomFormatService(ICustomFormatRepository formatRepository, ICacheManager cacheManager,
                            IContainer container,
                            Logger logger)
 {
     _formatRepository = formatRepository;
     _container        = container;
     _cache            = cacheManager.GetCache <Dictionary <int, CustomFormat> >(typeof(CustomFormat), "formats");
     _logger           = logger;
 }
예제 #3
0
        public CustomFormatService(ICustomFormatRepository formatRepository, ICacheManager cacheManager,
                                   IContainer container, IHistoryService historyService,/*IMediaFileService mediaFileService, IBlacklistService blacklistService,
                                                                                         * IHistoryService historyService, IPendingReleaseService pendingReleaseService,*/
                                   Logger logger)
        {
            _formatRepository = formatRepository;
            _container        = container;
            _cache            = cacheManager.GetCache <Dictionary <int, CustomFormat> >(typeof(CustomFormat), "formats");

            /*_mediaFileService = mediaFileService;
             * _blacklistService = blacklistService;
             * _historyService = historyService;
             * _pendingReleaseService = pendingReleaseService;*/
            _historyService = historyService;
            _logger         = logger;
        }