private void RecibirNotifciacionDelServidor(NotificacionesLogModel objNotification)
 {
     if (OnRecibirNotificaciones != null)
     {
         OnRecibirNotificaciones(objNotification);
     }
 }
 public void DispachNotification(NotificacionesLogModel objNotificacion)
 {
     // HubContext.Clients.Group(objNotificacion.Usuario).OnDispachNotification(objNotificacion);
        HubContext.Clients.All.OnDispachNotification(objNotificacion);
 }
예제 #3
0
 static void _signalCliente_OnRecibirNotificaciones(NotificacionesLogModel notiModel)
 {
     if(notiModel.Usuario.Equals(_CurrentUser))
         _Scv.SettingDlg.OnShowNotification(notiModel);
 }
 private static NotificacionesLog GetFromEntityFromViewModel(NotificacionesLogModel notiLog)
 {
     return new NotificacionesLog
     {
         IdNotificacionLog = notiLog.IdNotificacionLog,
         IdNotificacion = notiLog.IdNotificacion,
         Usuario = notiLog.Usuario,
         Titulo = notiLog.Titulo,
         Nota = notiLog.Nota,
         Intervalo = notiLog.Intervalo,
         Link = notiLog.Link,
         Vigencia = notiLog.Vigencia,
         Contador = notiLog.Contador,
         Activo = notiLog.Activo,
         AplicacionId = notiLog.AplicacionId,
         Aplicacion = notiLog.Aplicacion,
         IdTipo = notiLog.IdTipo,
         Tipo = notiLog.Tipo,
         IdTipoVigencia = notiLog.IdTipoVigencia,
         TipoVigencia = notiLog.TipoVigencia,
         FechaCierre = notiLog.FechaCierre,
         FechaCreacion = notiLog.FechaCreacion,
         Mostrado = notiLog.Mostrado,
         MostradoPrimeraVez = notiLog.MostradoPrimeraVez,
         MostradoUltimaVez = notiLog.MostradoUltimaVez
     };
 }