using Connected; using Connected.Middleware; using Connected.Startup; using TomPIT.Connected; var types = new List { new CoreStartup(), new ClientStartup(), new Common.Types.ClientBootstrapper(), new UITest.Bootstrap() //new MockUIStart() }; await Instance.Start(types, ParseArguments(args)); static Dictionary ParseArguments(params string[] args) { var result = new Dictionary(StringComparer.OrdinalIgnoreCase); foreach (var i in args) { var tokens = i.Split('=', 2); if (tokens.Length == 1) result.Add(tokens[0].Trim(), string.Empty); else result.Add(tokens[0].Trim(), tokens[1].Trim()); } return result; }