Exemple #1
0
 private async Task ExecuteCommandAsync(Guid guid, uint commandId)
 {
     // We don't wait for completion of the command, since this invokes ShowDialog() which is blocking.
     await Task.Factory.StartNew(() =>
     {
         UIInvoke(() =>
         {
             CommandingService.ExecuteCommand(guid, commandId, null);
         });
     }, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default);
 }
Exemple #2
0
 public FEP()
 {
     if (!started)
     {
         functionExecutor  = new FunctionExecutor();
         processingManager = new ProcessingManager(functionExecutor);
         acquisitor        = new Acquisitor(processingManager);
         commandingService = new CommandingService(processingManager);
         started           = true;
     }
 }
 private async Task ExecuteCommandAsync(Guid guid, uint commandId)
 {
     // We don't wait for completion of the command, since this invokes ShowDialog() which is blocking.
     await Task.Factory.StartNew(() =>
     {
         UIInvoke(() =>
         {
             CommandingService.ExecuteCommand(guid, commandId, null);
         });
     });
 }