public DataLayerResult DoResponse(IDataLayer dataLayer, Object response) { BatchExecuteCommandResponse res = (BatchExecuteCommandResponse)response; dataLayer.ExecuteResultList.Clear(); for (int i = 0; i < res.executeResults.Length; i++) { dataLayer.ExecuteResultList.Add(res.executeResults[i]); } return(DataLayerResult.Success); }
public DataLayerResult BatchExecuteCommand(string _command, List <int> hostIdList) { BatchExecuteCommandRequest req = new BatchExecuteCommandRequest(); req.command = _command; req.hostIds = hostIdList.ToArray(); BatchExecuteCommandResponse res = null; try { res = m_WsSysguard.BatchExecuteCommand(req); connStateManager.Connection(); return(stateProcessor.MakeDataLayerResult <BatchExecuteCommandResponse>(this, res)); } catch (Exception ex) { return(HandleException(ex)); } }