warm up services
This commit is contained in:
parent
f496771391
commit
5f69b6bc0c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user