title: Timer in Task not firing
body: <p>The following code is called from a Task t = new task(() => StartScanAsync(path));
  but the timer Event is not firing, the Timer is started in StartTimer.</p>
  
  <pre><code>private void StartScanAsync(string path)
  {
      StartTimer();
      foreach (string fsPath in Alphaleonis.Win32.Filesystem.Directory.EnumerateFileSystemEntries(path, "*", SearchOption.AllDirectories, true))
      {
          Alphaleonis.Win32.Filesystem.FileInfo finfo = new Alphaleonis.Win32.Filesystem.FileInfo(fsPath);
          fileClass.AddFile(finfo);
          //  UpdateStatus(fsPath);
          UpdateTotalFilesScanned();
          TotalFileSize += finfo.Length;
          UpdateTotalFileSize(TotalFileSize);
          IdentifyFileType.FileType ft = FileType.LoadPathRet(fsPath);
          //  Application.DoEvents();
      }
      UpdateStatus("Done Scanning.");
      StopTimer();
  }
  </code></pre>
  
  <p>I tried a Parrallel.ForEach as well and have the same problem.</p>
  
  <p>The following code is supposed to start a timer, run the Parrallel.ForEach over a large collection and then stop the Timer. However, the Timer event is not being Fired... Any ideas why and how to solve this?</p>
  
  <pre><code>StartTimer();
  Parallel.ForEach(Alphaleonis.Win32.Filesystem.Directory.EnumerateFileSystemEntries(path, "*", SearchOption.AllDirectories), fsPath =&gt;
  {
      Alphaleonis.Win32.Filesystem.FileInfo finfo = new Alphaleonis.Win32.Filesystem.FileInfo(fsPath);
      fileClass.AddFile(finfo);
      UpdateStatus(fsPath);
      UpdateTotalFilesScanned();
      TotalFileSize += finfo.Length;
      UpdateTotalFileSize(TotalFileSize);
      // IdentifyFileType.FileType ft = FileType.LoadPathRet(fsPath);
      Application.DoEvents();
  });
  StopTimer();
  </code></pre>
  
  <p>The First code works when not in a Task, and the second code is not run in a Task but still does not work. </p>
  
  <p>So To Clarify:<br>
  Question 1) Why does the timer (System.Windows.Forms.Timer (I think)) Not fire in a Task, and also does not fire when surrounding a Parallel.ForEach?</p>
  
  <p>Question 2) How can I raise a Tick every second (to get Files Scanned Per Second) within the Parallel.ForEach task and the Task&lt;> task?</p>