/// <summary> /// Send_To_Keepcon /// </summary> public void SendContent() { List <KeepconPost> posts = KeepconSvc.RetrivePost_To_Send(); if (posts.Count != 0) { Helper.Log(Helper.ServiceName, string.Format("SendContent: Enviando {0} post", posts.Count.ToString()), Fwk.Logging.EventType.Information, false); List <string> custommerCareList = Allus.Keepcon.Import.Import.Retrive_CustommerCareList(posts); foreach (String customerCare in custommerCareList) { List <KeepconPost> postAux = posts.Where <KeepconPost>(p => p.KeepconCustomerCare.Equals(customerCare)).ToList <KeepconPost>(); Allus.Keepcon.Import.Import wImport = new Allus.Keepcon.Import.Import(postAux); wImport.Contenttype = customerCare; KeepconSvc.SendContent(wImport); } Helper.Log(Helper.ServiceName, string.Format("SendContent: Envio de {0} post: FINALIZADO", posts.Count.ToString()), Fwk.Logging.EventType.Information, false); } else { Helper.Log(Helper.ServiceName, string.Format("SendContent: No hay post para enviar", posts.Count.ToString()), Fwk.Logging.EventType.Information, false); } }
/// <summary> /// Send_To_Keepcon /// </summary> public void SendContent() { List<KeepconPost> posts = KeepconSvc.RetrivePost_To_Send(); if (posts.Count != 0) { Helper.Log(Helper.ServiceName, string.Format("SendContent: Enviando {0} post", posts.Count.ToString()), Fwk.Logging.EventType.Information, false); List<string> custommerCareList = Allus.Keepcon.Import.Import.Retrive_CustommerCareList(posts); foreach (String customerCare in custommerCareList) { List<KeepconPost> postAux = posts.Where<KeepconPost>(p => p.KeepconCustomerCare.Equals(customerCare)).ToList<KeepconPost>(); Allus.Keepcon.Import.Import wImport = new Allus.Keepcon.Import.Import(postAux); wImport.Contenttype = customerCare; KeepconSvc.SendContent(wImport); } Helper.Log(Helper.ServiceName, string.Format("SendContent: Envio de {0} post: FINALIZADO", posts.Count.ToString()), Fwk.Logging.EventType.Information, false); } else { Helper.Log(Helper.ServiceName, string.Format("SendContent: No hay post para enviar", posts.Count.ToString()), Fwk.Logging.EventType.Information, false); } }