You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
706 B
34 lines
706 B
using Connected;
|
|
using Connected.Middleware;
|
|
using Connected.Startup;
|
|
using TomPIT.Connected;
|
|
|
|
var types = new List<IStartup>
|
|
{
|
|
new CoreStartup(),
|
|
new ClientStartup(),
|
|
new Common.Types.ClientBootstrapper(),
|
|
new UITest.Bootstrap()
|
|
//new MockUIStart()
|
|
};
|
|
|
|
await Instance.Start<App>(types, ParseArguments(args));
|
|
|
|
|
|
static Dictionary<string, string> ParseArguments(params string[] args)
|
|
{
|
|
var result = new Dictionary<string, string>(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;
|
|
}
|