fix services

This commit is contained in:
Stanley Dimant
2022-09-13 12:01:27 +02:00
parent db3784e795
commit 3cdaa53a65
2 changed files with 6 additions and 7 deletions

View File

@@ -61,12 +61,12 @@ public class Startup
opt.InstanceName = "MareSynchronos";
});
services.AddSingleton<IClientIdentificationService, DistributedClientIdentificationService>();
services.AddHostedService(p => p.GetService<DistributedClientIdentificationService>());
services.AddHostedService(p => p.GetService<IClientIdentificationService>());
}
else
{
services.AddSingleton<IClientIdentificationService, LocalClientIdentificationService>();
services.AddHostedService(p => p.GetService<LocalClientIdentificationService>());
services.AddHostedService(p => p.GetService<IClientIdentificationService>());
}
}