|
|
@ -1,4 +1,5 @@
|
|
|
|
using System.Reflection;
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
|
|
using System.Reflection;
|
|
|
|
using Connected.Host.Configuration;
|
|
|
|
using Connected.Host.Configuration;
|
|
|
|
using Microsoft.Extensions.Options;
|
|
|
|
using Microsoft.Extensions.Options;
|
|
|
|
|
|
|
|
|
|
|
@ -16,6 +17,10 @@ internal sealed class ConnectedPlatformService : BackgroundService
|
|
|
|
|
|
|
|
|
|
|
|
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
|
|
|
|
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);
|
|
|
|
await DependencyLoader.LoadPackages(Config.MicroServices, Config.Repositories);
|
|
|
|
|
|
|
|
|
|
|
|
if (Type.GetType(Config.Start) is not Type startupType)
|
|
|
|
if (Type.GetType(Config.Start) is not Type startupType)
|
|
|
|