warm up services

This commit is contained in:
Alexey Bannov 2022-08-09 10:28:44 +03:00
parent f496771391
commit 5f69b6bc0c

View File

@ -49,7 +49,14 @@ public class WarmupServicesStartupTask : IStartupTask
foreach (var service in GetServices(_services))
{
scope.ServiceProvider.GetServices(service);
try
{
scope.ServiceProvider.GetServices(service);
}
catch(Exception ex)
{
}
}
}