using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using Aitex.Common.Util; using Aitex.Core.RT.Event; using Aitex.Core.RT.Log; namespace MECF.Framework.Common.RecipeCenter { public class DefaultEapMapFileContext : IEapMapFileContext { public string GetConfigXml() { try { string configContent = PathManager.GetCfgDir() + @"\EAPMap.xml"; XmlDocument xmlDom = new XmlDocument(); xmlDom.Load(configContent); return xmlDom.OuterXml; } catch (Exception ex) { LOG.Write(ex); return ""; } } } }