public DefaultDomainObjectModelProvider( IMiCakeModuleContext moduleContext) { CheckValue.NotNull(moduleContext, nameof(moduleContext)); _exceptedModules = moduleContext.MiCakeModules.Where(s => !s.Instance.IsFrameworkLevel) .ToMiCakeModuleCollection(); }
public DomainMetadataProvider( IMiCakeModuleContext moduleContext, IOptions <MiCakeApplicationOptions> appOptions, DomainObjectFactory domainObjectFactory) { _domainObjectFactory = domainObjectFactory; var exceptModules = moduleContext.MiCakeModules .Where(s => !s.Instance.IsFrameworkLevel) .ToMiCakeModuleCollection(); _domainLayerAsm = appOptions.Value.DomainLayerAssemblies ?? GetDomainLayer(exceptModules); }