Esempio n. 1
0
        public DefaultDomainObjectModelProvider(
            IMiCakeModuleContext moduleContext)
        {
            CheckValue.NotNull(moduleContext, nameof(moduleContext));

            _exceptedModules = moduleContext.MiCakeModules.Where(s => !s.Instance.IsFrameworkLevel)
                               .ToMiCakeModuleCollection();
        }
Esempio n. 2
0
        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);
        }