Пример #1
0
 public IAsyncResult BeginGetSale(GetSaleRequest GetSaleRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("GetSale", new object[1]
       {
     (object) GetSaleRequest
       }, callback, asyncState);
 }
Пример #2
0
 public saleItem GetSale(sessionType session, string saleId)
 {
     GetSaleRequest GetSaleRequest = new GetSaleRequest();
       DateTime utcNow = DateTime.UtcNow;
       GetSaleRequest.nonce = Signature.GetNonce();
       GetSaleRequest.connectId = session.connectId;
       GetSaleRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "getsale", GetSaleRequest.nonce);
       GetSaleRequest.timestamp = Signature.GetZDateTime(utcNow);
       GetSaleRequest.saleId = saleId;
       GetSaleResponse sale = this.publisherService.GetSale(GetSaleRequest);
       if (sale == null)
     return (saleItem) null;
       else
     return sale.saleItem;
 }