public SMEXMLReader(SMEProjectInformation proinfo, SMESystemInformation sysinfo, SMEExceptionInformation exinfo, SMECallstackInformation callstackinfo) { m_xmldocument = new XDocument(); m_rootElement = new XElement("SME"); m_xmldocument.Add(m_rootElement); m_rootElement.Add(proinfo.ToXElement()); m_rootElement.Add(sysinfo.ToXElement()); m_rootElement.Add(exinfo.ToXElement()); m_rootElement.Add(callstackinfo.ToXElement()); }
// SMEClient 생성자 // @currentapplication: Form을 사용할 경우 대입 아닐 경우 null // @currentDomain: 호출해 준 프로세스의 기본 앱도메인 public SMEClient(string proname, Version proversion, bool iscatchne, bool iscatchhe, String APIKey) { // Project에 대응하는 api key(project id) APIKEY = APIKey; IsCatchNE = iscatchne; IsCatchHE = iscatchhe; IsSend = false; ServerIP = string.Empty; ServerPort = -1; ProjectInfo = new SMEProjectInformation(proname, proversion); Initialize(); }
public SMEClient(string proname, Version proversion, bool iscatchne, bool iscatchhe, String APIKey, string serverip, int serverport) { // Project에 대응하는 api key(project id) APIKEY = APIKey; IsCatchNE = iscatchne; IsCatchHE = iscatchhe; IsSend = true; ServerIP = serverip; ServerPort = serverport; ProjectInfo = new SMEProjectInformation(proname, proversion); Initialize(); }
public void LoadFromXML(string path) { m_xmldocument = XDocument.Load(path); m_rootElement = (XElement)m_xmldocument.FirstNode; if(m_rootElement.Name.ToString().Equals("SME")) { XElement el = (XElement)m_rootElement.FirstNode; ProjectInfo = new SMEProjectInformation(el); el = (XElement)el.NextNode; SystemInfo = new SMESystemInformation(el); el = (XElement)el.NextNode; ExceptionInfo = new SMEExceptionInformation(el); el = (XElement)el.NextNode; CallStackInfo = new SMECallstackInformation(el); } else { throw new Exception("SME XML 파일이 아닙니다."); } }
public SMEProjectInformation(SMEProjectInformation proinfo) { Name = proinfo.Name; m_Version = new Version(proinfo.m_Version.ToString()); }