public void GetInventory(InventoryConfig config) { var command = new InventoryCommand(); config.Configure(command); command.TakeNoAction = false; _tagMonitor.OnTagReceived(command); _commander.Execute(command); }
public async Task Configure(InventoryConfig config) { var command = new InventoryCommand(); config.Configure(command); await Task.Run(() => { try { _commander.Execute(command); } catch (Exception ex) { LogException(ex.Message); } }); }