|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using Connected.Host.Configuration;
|
|
|
|
|
using Microsoft.Extensions.Options;
|
|
|
|
|
|
|
|
|
@ -16,6 +17,10 @@ internal sealed class ConnectedPlatformService : BackgroundService
|
|
|
|
|
|
|
|
|
|
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
|
|
|
|
|
{
|
|
|
|
|
if (GlobalConfig.GetValue<bool>("waitForDebugger"))
|
|
|
|
|
while (!Debugger.IsAttached)
|
|
|
|
|
await Task.Delay(500);
|
|
|
|
|
|
|
|
|
|
await DependencyLoader.LoadPackages(Config.MicroServices, Config.Repositories);
|
|
|
|
|
|
|
|
|
|
if (Type.GetType(Config.Start) is not Type startupType)
|
|
|
|
|