Ejemplo n.º 1
0
            void DataArrived(string command, BinaryReader reader)
            {
                LoggingService.Debug("Received command " + command);
                switch (command)
                {
                case "ReportEvent":
                    loggerChain.HandleBuildEvent(EventSource.DecodeEvent(reader));
                    break;

                case "BuildDone":
                    bool success = reader.ReadBoolean();
                    BuildDone(success);
                    MarkAsFree();
                    break;

                case "ReportException":
                    string ex = reader.ReadString();
                    MessageService.ShowException(new BuildWorkerException(), ex);
                    break;

                default:
                    throw new NotSupportedException(command);
                }
            }