Пример #1
0
 public IAsyncResult BeginGetLead(GetLeadRequest GetLeadRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("GetLead", new object[1]
       {
     (object) GetLeadRequest
       }, callback, asyncState);
 }
Пример #2
0
 public leadItem GetLead(sessionType session, string leadId)
 {
     GetLeadRequest GetLeadRequest = new GetLeadRequest();
       DateTime utcNow = DateTime.UtcNow;
       GetLeadRequest.nonce = Signature.GetNonce();
       GetLeadRequest.connectId = session.connectId;
       GetLeadRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "getlead", GetLeadRequest.nonce);
       GetLeadRequest.timestamp = Signature.GetZDateTime(utcNow);
       GetLeadRequest.leadId = leadId;
       GetLeadResponse lead = this.publisherService.GetLead(GetLeadRequest);
       if (lead == null)
     return (leadItem) null;
       else
     return lead.leadItem;
 }