public NetDebuggerSession()
        {
            MtaStaConnector = new MtaStaConnector(this); 
            
            if (Thread.CurrentThread.GetApartmentState() == ApartmentState.STA)
            {
                MtaStaConnector.CallMethod = CallMethod.Indirect;
            }
            else
            {
                MtaStaConnector.CallMethod = CallMethod.Direct;
            }

            PendingBreakpoints = new List<BreakpointBookmark>();
            ComInstanceCollector = new ComInstanceCollector();
            SymbolsServer.Resolvers.Add(new PdbSymbolsResolver(ComInstanceCollector));
            //SymbolsServer.Resolvers.Add(new DisassemblerSymbolsResolver());
            AssemblyResolver = new ReflectionAssemblyResolver();
        }
Exemple #2
0
 internal ManagedCallbackProxy(ManagedCallback managedCallback)
 {
     _managedCallback = managedCallback;
     _connector       = managedCallback.Session.MtaStaConnector;
 }
 internal ManagedCallbackProxy(ManagedCallback managedCallback)
 {
     _managedCallback = managedCallback;
     _connector = managedCallback.Session.MtaStaConnector;
 }