static void Events_OnNotificationSent(PushSharp.Common.Notification notification) { try { bool EliminoNotificacion = BLL_EncuestasMoviles.MngNegocioNotificaciones.EliminaNotificacion(Convert.ToInt32(notification.Tag.ToString().Split('|')[0]), notification.Tag.ToString().Split('|')[1], Convert.ToInt32(notification.Tag.ToString().Split('|')[2]), notification.Tag.ToString().Split('|')[3], Convert.ToInt32(notification.Tag.ToString().Split('|')[4])); if (EliminoNotificacion) { Console.WriteLine("Notificacion " + notification.ToString().Split('|')[0] + " Eliminada correctamente " + DateTime.Now); } else { Console.WriteLine("ERROR al actualizar status a 3 " + DateTime.Now); } Console.WriteLine("Enviado a " + notification.Tag.ToString()); Console.WriteLine("Sent: " + notification.Platform.ToString() + " -> " + notification.ToString()); } catch { Console.WriteLine("ERROR al actualizar status a 3 " + DateTime.Now); } finally { } }
static void Events_OnNotificationSendFailure(PushSharp.Common.Notification notification, Exception notificationFailureException) { Console.WriteLine("Failure: " + notification.Platform.ToString() + " -> " + notificationFailureException.Message + " -> " + notification.ToString()); }
static void Events_OnNotificationSent(PushSharp.Common.Notification notification) { Console.WriteLine("Sent: " + notification.Platform.ToString() + " -> " + notification.ToString()); }
static void Events_OnNotificationSent(PushSharp.Common.Notification notification) { try { Console.WriteLine("Enviado a " + notification.Tag.ToString()); Console.WriteLine("Sent: " + notification.Platform.ToString() + " -> " + notification.ToString()); } catch { } }