public AudioController(IAudioFileService audioFileService, ILanguageService languageService, IKnowledgeLevelService knowledgeLevelService, IExhibitService exhibitService)
 {
     this._audioFileService = audioFileService;
     this._languageService = languageService;
     this._knowledgeLevelService = knowledgeLevelService;
     this._exhibitService = exhibitService;
 }
 public ExhibitController(IAudioFileService audioFileService, IExhibitService exhibitService, IKnowledgeLevelService knowledgeLevelService, ILanguageService languageService)
 {
     this._audioFileService      = audioFileService;
     this._exhibitService        = exhibitService;
     this._knowledgeLevelService = knowledgeLevelService;
     this._languageService       = languageService;
 }
Пример #3
0
 public WxFileController(IFileDownloaderService fileDownloaderService         = null,
                         IAudioFileService audioFileService                   = null,
                         IHostingEnvironmentService hostingEnvironmentService = null)
 {
     _fileDownloaderService     = fileDownloaderService ?? new FileDownloaderService();
     _audioFileService          = audioFileService ?? new AudioFileService();
     _hostingEnvironmentService = hostingEnvironmentService ?? new HostingEnvironmentService();
 }
Пример #4
0
        //private static readonly Regex _trackRegex = new Regex(@"^(\d+)\s*-\s*(.*)$");

        public HandleArtists(
            IMusicCatalogService musicCatalogDbService,
            IAudioFileService audioFileService,
            IOptions <MusicLibraryOptions> options)
        {
            _musicCatalogDbService = musicCatalogDbService;
            _audioFileService      = audioFileService;
            _musicFilesLocation    = options.Value.MusicFilesLocation;
        }
        static async Task ConvertRoutine(IAudioFileService audioFileService
                                         , IMetaDataQueue queue
                                         )
        {
            await Task.Factory.StartNew(() =>
            {
                while (!queue.IsEmpty())
                {
                    var container = queue.Dequeue();
                    lock (ConsoleWriteLock)
                    {
                        Console.WriteLine("Converting: {0}", container.InputFilePath);
                    }

                    audioFileService.PrepareConversion(container).Convert();
                }
            }, TaskCreationOptions.LongRunning);
        }
Пример #6
0
 public WxFileController()
 {
     _fileDownloaderService     = new FileDownloaderService();
     _audioFileService          = new AudioFileService();
     _hostingEnvironmentService = new HostingEnvironmentService();
 }
Пример #7
0
 public MessageConverter(IAudioFileService audioFileService, IUnitOfWork unitOfWork)
 {
     _audioFileService = audioFileService;
     _unitOfWork       = unitOfWork;
 }
 public AudioFileServiceTest()
 {
     textInfo = new CultureInfo("en-US", false).TextInfo;
     service  = new AudioFileService(textInfo);
 }
 public FileController(IAudioFileService audioFileService, IExhibitService exhibitService, ICustomerService customerService)
 {
     this._audioFileService = audioFileService;
     this._exhibitService = exhibitService;
     this._customerService = customerService;
 }
Пример #10
0
 public FileController(IAudioFileService audioFileService, IExhibitService exhibitService, ICustomerService customerService)
 {
     this._audioFileService = audioFileService;
     this._exhibitService   = exhibitService;
     this._customerService  = customerService;
 }
Пример #11
0
 public AudioService(ILogger <AudioService> logger, IAudioRepository audioRepository, IAudioFileService audioFileService)
 {
     _audioRepository  = audioRepository;
     _audioFileService = audioFileService;
     _logger           = logger;
 }
Пример #12
0
 public CastMessageService(IUnitOfWork unitOfWork, IAudioFileService audioFileService)
 {
     _unitOfWork       = unitOfWork;
     _audioFileService = audioFileService;
 }