public WireProtocol.Commands.Debugging_Resolve_Assembly[] ResolveAllAssemblies()
        {
            WireProtocol.Commands.Debugging_TypeSys_Assemblies.Reply assemblies = GetAssemblies();
            WireProtocol.Commands.Debugging_Resolve_Assembly[] resolveAssemblies = null;

            if (assemblies == null || assemblies.m_data == null)
            {
                resolveAssemblies = new WireProtocol.Commands.Debugging_Resolve_Assembly[0];
            }
            else
            {
                int cAssembly = assemblies.m_data.Length;
                WireProtocol.OutgoingMessage[] requests = new WireProtocol.OutgoingMessage[cAssembly];
                int iAssembly;

                for (iAssembly = 0; iAssembly < cAssembly; iAssembly++)
                {
                    WireProtocol.Commands.Debugging_Resolve_Assembly cmd = new WireProtocol.Commands.Debugging_Resolve_Assembly();

                    cmd.m_idx = assemblies.m_data[iAssembly];

                    requests[iAssembly] = CreateMessage(WireProtocol.Commands.c_Debugging_Resolve_Assembly, 0, cmd);
                }

                WireProtocol.IncomingMessage[] replies = SyncMessages(requests);

                resolveAssemblies = new WireProtocol.Commands.Debugging_Resolve_Assembly[cAssembly];

                for (iAssembly = 0; iAssembly < cAssembly; iAssembly++)
                {
                    resolveAssemblies[iAssembly] = requests[iAssembly].Payload as WireProtocol.Commands.Debugging_Resolve_Assembly;
                    resolveAssemblies[iAssembly].m_reply = replies[iAssembly].Payload as WireProtocol.Commands.Debugging_Resolve_Assembly.Reply;
                }
            }

            return resolveAssemblies;
        }
        public WireProtocol.Commands.Debugging_Resolve_Assembly.Reply ResolveAssembly(uint idx)
        {
            WireProtocol.Commands.Debugging_Resolve_Assembly cmd = new WireProtocol.Commands.Debugging_Resolve_Assembly();

            cmd.m_idx = idx;

            WireProtocol.IncomingMessage reply = SyncMessage(WireProtocol.Commands.c_Debugging_Resolve_Assembly, 0, cmd);
            if (reply != null)
            {
                return reply.Payload as WireProtocol.Commands.Debugging_Resolve_Assembly.Reply;
            }

            return null;
        }
Ejemplo n.º 3
0
        public Commands.Debugging_Resolve_Assembly.Reply ResolveAssembly( uint idx )
        {
            Commands.Debugging_Resolve_Assembly cmd = new Commands.Debugging_Resolve_Assembly( );

            cmd.m_idx = idx;

            IncomingMessage reply = SyncMessage( Commands.c_Debugging_Resolve_Assembly, 0, cmd );
            if( reply != null )
            {
                return reply.Payload as Commands.Debugging_Resolve_Assembly.Reply;
            }

            return null;
        }