Пример #1
0
        private void AsyncConvertAndUpload(AudioLog audioLog)
        {
            Thread.Sleep(1000);

            _converterService.AsyncConvert(audioLog.GetWav(), audioLog.GetMp3());
            _converterService.Wait();
            try
            {
                UploadConvertedFile(audioLog);

                File.Delete(audioLog.GetWav());
                File.Delete(audioLog.GetMp3());
            }
            catch (Exception ex)
            {
                Logger.Error(ex.Message);
            }
        }