Move heavy tasks out of constructor, make awaitable

- Add support for awaitable startup
- Issue MatterHackers/MCCentral#2423
Select printer not changing to new printer
This commit is contained in:
John Lewin 2017-12-20 18:25:12 -08:00
parent e4e5e59794
commit 4415300a1f
5 changed files with 66 additions and 67 deletions

View file

@ -277,7 +277,7 @@ namespace MatterControl.Tests.MatterControl
AggContext.StaticData = new FileSystemStaticData(TestContext.CurrentContext.ResolveProjectPath(4, "StaticData"));
MatterControlUtilities.OverrideAppDataLocation(TestContext.CurrentContext.ResolveProjectPath(4));
var field = new ComPortField(new PrinterConfig(null, PrinterSettings.Empty));
var field = new ComPortField(new PrinterConfig(PrinterSettings.Empty));
await ValidateAgainstValueMap(
field,