Exemplo n.º 1
0
 public IAsyncResult BeginGetProduct(GetProductRequest GetProductRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("GetProduct", new object[1]
       {
     (object) GetProductRequest
       }, callback, asyncState);
 }
Exemplo n.º 2
0
 public productItem GetProduct(sessionType session, string productId, int? adspaceId)
 {
     GetProductRequest GetProductRequest = new GetProductRequest();
       GetProductRequest.connectId = session.connectId;
       GetProductRequest.zupId = productId;
       if (adspaceId.HasValue)
       {
     GetProductRequest.adspaceId = adspaceId.Value;
     GetProductRequest.adspaceIdSpecified = true;
       }
       GetProductResponse product = this.publisherService.GetProduct(GetProductRequest);
       if (product == null)
     return (productItem) null;
       else
     return product.productItem;
 }