Пример #1
0
 /// <remarks/>
 public void convertLeadAsync(LeadConvert[] leadConverts) {
     this.convertLeadAsync(leadConverts, null);
 }
Пример #2
0
 /// <remarks/>
 public void convertLeadAsync(LeadConvert[] leadConverts, object userState) {
     if ((this.convertLeadOperationCompleted == null)) {
         this.convertLeadOperationCompleted = new System.Threading.SendOrPostCallback(this.OnconvertLeadOperationCompleted);
     }
     this.InvokeAsync("convertLead", new object[] {
                 leadConverts}, this.convertLeadOperationCompleted, userState);
 }
 public new LeadConvertResult[] convertLead(LeadConvert[] leadConverts)
 {
     long start = DateTime.Now.Ticks;
     if (leadConverts.Length > 1)
         SetAutoRequestCompressed();
     else
         SetAutoRequestPlain();
     SetAutoResponseCompressed();
     try
     {
         return base.convertLead(leadConverts);
     }
     finally
     {
         if (OnConvertLeadComplete != null)
             OnConvertLeadComplete(new TimeSpan(DateTime.Now.Ticks - start));
         ResetCompressionModes();
     }
 }