DefaultEapMapFileContext.cs 783 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml;
  7. using Aitex.Common.Util;
  8. using Aitex.Core.RT.Event;
  9. using Aitex.Core.RT.Log;
  10. namespace MECF.Framework.Common.RecipeCenter
  11. {
  12. public class DefaultEapMapFileContext : IEapMapFileContext
  13. {
  14. public string GetConfigXml()
  15. {
  16. try
  17. {
  18. string configContent = PathManager.GetCfgDir() + @"\EAPMap.xml";
  19. XmlDocument xmlDom = new XmlDocument();
  20. xmlDom.Load(configContent);
  21. return xmlDom.OuterXml;
  22. }
  23. catch (Exception ex)
  24. {
  25. LOG.Write(ex);
  26. return "";
  27. }
  28. }
  29. }
  30. }