internal SwDmComponentCollection(SwDmAssembly ownerAssm, ISwDmConfiguration conf) { m_OwnerAssm = ownerAssm; m_Conf = conf; m_PathResolver = new SwDmFilePathResolver(); }
internal SwDmComponentCollection(SwDmAssembly parentAssm, ISwDmConfiguration conf) { m_ParentAssm = parentAssm; m_Conf = conf; m_PathResolver = new SwDmFilePathResolver(); m_ComponentsCache = new Dictionary <string, SwDmComponent>(StringComparer.CurrentCultureIgnoreCase); }
internal SwDmComponent(SwDmAssembly parentAssm, ISwDMComponent comp) : base(comp) { Component = comp; m_ParentAssm = parentAssm; m_FilePathResolver = new SwDmFilePathResolver(); m_PathLazy = new Lazy <string>(() => { var rootDir = System.IO.Path.GetDirectoryName(OwnerAssembly.Path); return(m_FilePathResolver.ResolvePath(rootDir, CachedPath)); }); }