public DataLayerResult DoResponse(IDataLayer dataLayer, Object response) { dataLayer.SystemInfoList.Clear(); GetAllSystemInfoResponse res = (GetAllSystemInfoResponse)response; if (res.allSysInfo != null) { SystemInfo[] systemInfoArray = res.allSysInfo; for (int i = 0; i < systemInfoArray.Length; i++) { dataLayer.SystemInfoList.Add(systemInfoArray[i].hostIp, systemInfoArray[i]); } } return(DataLayerResult.Success); }
public DataLayerResult GetAllSystemInfo() { GetAllSystemInfoRequest req = new GetAllSystemInfoRequest(); GetAllSystemInfoResponse res = null; try { res = m_WsSysguard.GetAllSystemInfo(req); connStateManager.Connection(); return(stateProcessor.MakeDataLayerResult <GetAllSystemInfoResponse>(this, res)); } catch (Exception ex) { return(HandleException(ex)); } }