Beispiel #1
0
 public void Analyse()
 {
     Task.Run(() =>
     {
         var vcaFolder    = ConfigurationManager.AppSettings["vcaFolder"];
         var outputFolder = ConfigurationManager.AppSettings["outputFolder"];
         MediaHelper.EnsureDirCreated(vcaFolder);
         while (true)
         {
             var files = Directory.GetFiles(vcaFolder);
             if (files.Length > 0)
             {
                 var file = files[0];
                 Do(file, outputFolder);
             }
             else
             {
                 Thread.Sleep(1000);
             }
         }
     });
 }