Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var currentPath = AppDomain.CurrentDomain.BaseDirectory;
            var logFile     = new FileStream(currentPath + "\\DAP.log", FileMode.Create);
            var dap         = new DAPStream();

            dap.EnableLogging(logFile);
            var dapHandler = new DAPMessageHandler(dap);

            dapHandler.EnableLogging(logFile);
            try
            {
                dap.RunLoop();
            }
            catch (Exception e)
            {
                using (var writer = new StreamWriter(logFile, Encoding.UTF8, 0x1000, true))
                {
                    writer.Write(e.ToString());
                    Console.WriteLine(e.ToString());
                }
            }
        }
Ejemplo n.º 2
0
 public ExpressionEvaluator(DAPMessageHandler msgHandler)
 {
     DAP = msgHandler;
 }