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