diff --git a/common/ASC.Api.Core/Core/BaseStartup.cs b/common/ASC.Api.Core/Core/BaseStartup.cs index e10aed72e7..b54ab42a48 100644 --- a/common/ASC.Api.Core/Core/BaseStartup.cs +++ b/common/ASC.Api.Core/Core/BaseStartup.cs @@ -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 => {