public DepartmentInfo GetDepartment( Identifier orgUnitId ) { GetDepartmentRequest request = new GetDepartmentRequest() { OrgUnitId = orgUnitId }; GetDepartmentResponse response = CallWebService< IOrgUnitManagementServicev1_0, GetDepartmentRequest, GetDepartmentResponse>( m_service1_0, request, ( s, q ) => s.GetDepartment( q ) ); return response.Department; }
/// <remarks/> public void GetDepartmentAsync(GetDepartmentRequest GetDepartmentRequest) { this.GetDepartmentAsync(GetDepartmentRequest, null); }
/// <remarks/> public void GetDepartmentAsync(GetDepartmentRequest GetDepartmentRequest, object userState) { if ((this.GetDepartmentOperationCompleted == null)) { this.GetDepartmentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDepartmentOperationCompleted); } this.InvokeAsync("GetDepartment", new object[] { GetDepartmentRequest}, this.GetDepartmentOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult BeginGetDepartment(GetDepartmentRequest GetDepartmentRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDepartment", new object[] { GetDepartmentRequest}, callback, asyncState); }