Exemplo n.º 1
0
 public DepartmentInfo GetDepartmentByCode( string code )
 {
     GetDepartmentByCodeRequest request = new GetDepartmentByCodeRequest() { Code = code };
     GetDepartmentResponse response = CallWebService<
         IOrgUnitManagementServicev1_0, GetDepartmentByCodeRequest, GetDepartmentResponse>(
         m_service1_0, request, ( s, q ) => s.GetDepartmentByCode( q ) );
     return response.Department;
 }
Exemplo n.º 2
0
 /// <remarks/>
 public void GetDepartmentByCodeAsync(GetDepartmentByCodeRequest GetDepartmentByCodeRequest)
 {
     this.GetDepartmentByCodeAsync(GetDepartmentByCodeRequest, null);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public void GetDepartmentByCodeAsync(GetDepartmentByCodeRequest GetDepartmentByCodeRequest, object userState)
 {
     if ((this.GetDepartmentByCodeOperationCompleted == null)) {
         this.GetDepartmentByCodeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDepartmentByCodeOperationCompleted);
     }
     this.InvokeAsync("GetDepartmentByCode", new object[] {
                 GetDepartmentByCodeRequest}, this.GetDepartmentByCodeOperationCompleted, userState);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public System.IAsyncResult BeginGetDepartmentByCode(GetDepartmentByCodeRequest GetDepartmentByCodeRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("GetDepartmentByCode", new object[] {
                 GetDepartmentByCodeRequest}, callback, asyncState);
 }