public CxWSResponseGroupList GetCompanies() { CxWSResponseGroupList result = _web_Service.GetCompanies(); return(result); }
/// <summary> /// Set upload params /// </summary> /// <param name="loginResult">Auth user data for uploading</param> /// <param name="project">Selected solution project data</param> /// <returns></returns> internal static Upload SetUploadSettings(LoginResult loginResult, Project project, bool cancelStatus) { cancelStatus = false; PresetResult presetResult = null; TeamResult teamResult = null; BackgroundWorkerHelper bg = new BackgroundWorkerHelper(delegate(object obj) { _client = InitCxClient(loginResult); if (_client == null) { return; } presetResult = GetPresets(loginResult, presetResult); CxWSResponseGroupList teamXmlList = _client.ServiceClient.GetAssociatedGroupsList(loginResult.SessionId); teamResult = new TeamResult(); teamResult.IsSuccesfull = teamXmlList.IsSuccesfull; teamResult.Teams = new Dictionary <string, string>(); if (teamXmlList.GroupList != null && teamXmlList.GroupList.Length > 0) { for (int i = 0; i < teamXmlList.GroupList.Length; i++) { teamResult.Teams.Add(teamXmlList.GroupList[i].ID, teamXmlList.GroupList[i].GroupName); } } if (_client != null) { _client.Close(); } }, loginResult.AuthenticationData.ReconnectInterval * 1000, loginResult.AuthenticationData.ReconnectCount); //Show wait dialog and perform server request in different thread to safe UI responsibility if (!bg.DoWork(PRESETS_LOADING_TEXT)) { cancelStatus = true; return(null); } if (!presetResult.IsSuccesfull) { return(null); } var uploadData = new Upload(new EntityId(loginResult), project.ProjectName, string.Format("{0} Description", project.ProjectName), presetResult.Presets, 0, teamResult.Teams, Guid.Empty.ToString(), true); if (_dispatcher == null) { _dispatcher = ServiceLocators.ServiceLocator.GetDispatcher(); } if (_dispatcher != null) { _dispatcher.Dispatch(uploadData); } return(uploadData); }
public CxWSResponseGroupList GetAssociatedGroupsList(string SessionID) { CxWSResponseGroupList result = _web_Service.GetAssociatedGroupsList(SessionID); return(result); }