Пример #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;
 }
Пример #2
0
 /// <remarks/>
 public void GetDepartmentByCodeAsync(GetDepartmentByCodeRequest GetDepartmentByCodeRequest)
 {
     this.GetDepartmentByCodeAsync(GetDepartmentByCodeRequest, null);
 }
Пример #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);
 }
Пример #4
0
 /// <remarks/>
 public System.IAsyncResult BeginGetDepartmentByCode(GetDepartmentByCodeRequest GetDepartmentByCodeRequest, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("GetDepartmentByCode", new object[] {
                 GetDepartmentByCodeRequest}, callback, asyncState);
 }