|
|
@ -121,15 +121,15 @@ public class BasedataHttpApiHostModule : ModuleBase<BasedataHttpApiHostModule> |
|
|
|
CreateDatabase<BasedataDbContext>(context); |
|
|
|
base.OnApplicationInitialization(context); |
|
|
|
|
|
|
|
AsyncHelper.RunSync(async () => |
|
|
|
{ |
|
|
|
using (var scope = context.ServiceProvider.CreateScope()) |
|
|
|
{ |
|
|
|
await scope.ServiceProvider |
|
|
|
.GetRequiredService<CacheService>().StartAsync().ConfigureAwait(false); |
|
|
|
//AsyncHelper.RunSync(async () =>
|
|
|
|
//{
|
|
|
|
// using (var scope = context.ServiceProvider.CreateScope())
|
|
|
|
// {
|
|
|
|
// await scope.ServiceProvider
|
|
|
|
// .GetRequiredService<CacheService>().StartAsync().ConfigureAwait(false);
|
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
// }
|
|
|
|
//});
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|