warm up services

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

View File

@ -48,9 +48,16 @@ public class WarmupServicesStartupTask : IStartupTask
tenantManager.SetCurrentTenant("localhost");
foreach (var service in GetServices(_services))
{
try
{
scope.ServiceProvider.GetServices(service);
}
catch(Exception ex)
{
}
}
}
return Task.CompletedTask;