Esempio n. 1
0
        /// <summary>
        /// Create a new symbol provider.
        /// Note that the symbol provider will cache the symbol readers it creates
        /// </summary>
        /// <param name="searchPath">A semicolon separated list of paths to search for a PDB file</param>
        /// <param name="searchPolicy">Flags which specify where else to search</param>
        public SymbolProvider(string searchPath, SymSearchPolicies searchPolicy)
        {
            m_searchPath = searchPath;
            m_searchPolicy = searchPolicy;

            // Create a metadata dispenser and symbol binder via COM interop to use for all modules
            m_metadataDispenser = new IMetaDataDispenser();
            m_symBinder = new ISymUnmanagedBinder2();
        }
Esempio n. 2
0
        /// <summary>
        /// Create a new symbol provider.
        /// Note that the symbol provider will cache the symbol readers it creates
        /// </summary>
        /// <param name="searchPath">A semicolon separated list of paths to search for a PDB file</param>
        /// <param name="searchPolicy">Flags which specify where else to search</param>
        public SymbolProvider(string searchPath, SymSearchPolicies searchPolicy)
        {
            m_searchPath   = searchPath;
            m_searchPolicy = searchPolicy;

            // Create a metadata dispenser and symbol binder via COM interop to use for all modules
            m_metadataDispenser = new IMetaDataDispenser();
            m_symBinder         = new ISymUnmanagedBinder2();
        }
Esempio n. 3
0
 internal PdbSymbolsResolver(ComInstanceCollector instanceCollector)
 {
     _instanceCollector = instanceCollector;
     _instanceCollector.AddComObject(_dispenser    = new IMetaDataDispenser());
     _instanceCollector.AddComObject(_symbolBinder = new ISymUnmanagedBinder2());
 }
 internal PdbSymbolsResolver(ComInstanceCollector instanceCollector)
 {
     _instanceCollector = instanceCollector;
     _instanceCollector.AddComObject(_dispenser = new IMetaDataDispenser());
     _instanceCollector.AddComObject(_symbolBinder = new ISymUnmanagedBinder2());
 }