Browse Source

更新版本

dev_DY_CC
赵新宇 1 year ago
parent
commit
f26bb4930e
  1. 16
      be/Hosts/Basedata.Host/Win_in.Sfs.Basedata.HttpApi.Host/BasedataHttpApiHostModule.cs

16
be/Hosts/Basedata.Host/Win_in.Sfs.Basedata.HttpApi.Host/BasedataHttpApiHostModule.cs

@ -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);
}
});
// }
//});
}
}

Loading…
Cancel
Save