Startup: fix load products

This commit is contained in:
pavelbannov 2021-07-16 11:56:14 +03:00
parent d88741962c
commit 1268a436ca

View File

@ -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 =>
{