コード例 #1
0
        internal SwDmComponentCollection(SwDmAssembly ownerAssm, ISwDmConfiguration conf)
        {
            m_OwnerAssm = ownerAssm;
            m_Conf      = conf;

            m_PathResolver = new SwDmFilePathResolver();
        }
コード例 #2
0
        internal SwDmComponentCollection(SwDmAssembly parentAssm, ISwDmConfiguration conf)
        {
            m_ParentAssm = parentAssm;
            m_Conf       = conf;

            m_PathResolver    = new SwDmFilePathResolver();
            m_ComponentsCache = new Dictionary <string, SwDmComponent>(StringComparer.CurrentCultureIgnoreCase);
        }
コード例 #3
0
        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));
            });
        }