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); }
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); }); }); }