Startup: fix load products
This commit is contained in:
parent
d88741962c
commit
1268a436ca
@ -81,7 +81,10 @@ namespace ASC.Api.Core
|
||||
|
||||
DIHelper.TryAdd(typeof(ICacheNotify<>), typeof(KafkaCache<>));
|
||||
|
||||
DIHelper.RegisterProducts(Configuration, HostEnvironment.ContentRootPath);
|
||||
if (LoadProducts)
|
||||
{
|
||||
DIHelper.RegisterProducts(Configuration, HostEnvironment.ContentRootPath);
|
||||
}
|
||||
|
||||
var builder = services.AddMvcCore(config =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user