public void RegisterDomains(Assembly assembly) { var newMetaDomains = assembly .GetTypes() .Where(type => MetaDomain.IsDomain(type)) .Select(domain => new MetaDomain(domain)); foreach (MetaDomain newMetaDomain in newMetaDomains) { RegisterDomain(newMetaDomain); } }
public void RegisterDomain(MetaDomain metaDomain) { metaDomains.Add(metaDomain); }