//public void GetProice /// <summary> /// Procesa un mensaje de tipo PricingUpdate /// </summary> /// <param name="msg">El mensaje PricingUpdate</param> public void ProcessPricingUpdate(PricingUpdateType pricingUpdate) { PricingImportHelper importer = new PricingImportHelper(); importer.Import(new MemoryStream(pricingUpdate.PricingFile)); using (var dao = new PricingUpdateDataAccess()) { dao.Create(TypeHelper.Map2DB(pricingUpdate), 0); } log.Info("ProcessPricingUpdate: PricingUpdate successfully processed"); }
public Response PricingUpdate(PricingUpdateType update) { string.Format(@"DDPVersion:{0},MessageId:{1},MessageType:{2}, schemaVersion:{4},test:{5},TimeStamp:{6}", update.DDPVersionNum, update.MessageId, update.MessageType, update.schemaVersion, update.test, update.TimeStamp); Response response = new Response(); response.response = responseType.Success; return(response); }
public Response PricingUpdate(PricingUpdateType pricingUpdate) { log.Info("New PricingUpdate message arrived"); validateSchemaVersion(pricingUpdate.schemaVersion); //Create message and enqueue it Message msg = new Message(pricingUpdate); msg.Label = "pricingUpdate"; EnqueueMessageInQueue(msg); //Build response Response response = new Response(); response.response = responseType.Success; log.Info("PricingUpdate first validation OK, enqueued"); return(response); }