Beispiel #1
0
 public static PriceWebsiteDescription GetPriceWebsiteDescription()
 {
     PriceWebsiteDescription price;
     using (var db = new StruktoWebsiteEntities())
     {
         price = new PriceWebsiteDescription(db.GetPriceWebsiteData(Settings.Default.TestProductValor).Single());
     }
     return price;
 }
 public void WritePriceAsync(PriceWebsiteDescription description, Action<IWebserviceResult> callback)
 {
     var asyncRequestInfo = new AsyncRequestInfo("WritePriceAsync", callback);
     Webservice.writePriceAsync(description.Valor, description.LastUpdated, description.Bid, description.Ask,
                                asyncRequestInfo);
 }
 public void WritePriceAsync(PriceWebsiteDescription description, Action<IWebserviceResult> callback)
 {
     throw new NotImplementedException();
 }
 public IWebserviceResult WritePrice(PriceWebsiteDescription description)
 {
     var info = new RequestInfo(string.Format("WritePrice {0}", description));
     object[] writePrice = Webservice.writePrice(description.Valor, description.LastUpdated, description.Bid,
                                                 description.Ask);
     return new WebserviceResult(info, writePrice);
 }
 public IWebserviceResult WritePrice(PriceWebsiteDescription description)
 {
     throw new NotImplementedException();
 }