Ejemplo n.º 1
0
        private void StartCdb(string socketId, string dumpPath, bool is64Bit)
        {
            string cdbPath;

            if (is64Bit)
            {
                cdbPath = settings.Value.Cdbx64;
            }
            else
            {
                cdbPath = settings.Value.Cdbx86;
            }
            var mgr = new ConsoleAppManager(cdbPath);

            socketIdToProcess[socketId] = mgr;
            processToSocketId[mgr]      = socketId;
            mgr.StandartTextReceived   += Mgr_StandartTextReceived;
            mgr.ErrorTextReceived      += Mgr_ErrorTextReceived;
            mgr.ExecuteAsync($"-z {dumpPath}");

            mgr.WriteLine(".cordll -ve -u -l");             // load DAC and SOS
        }
Ejemplo n.º 2
0
        private async Task WriteLineAndTellClient(string socketId, string line, ConsoleAppManager mgr)
        {
            await SendToClient(socketId, line + "\n", null);

            mgr.WriteLine(line);
        }