public Task <HttpResponseMessage> CreateResponse(HttpResponseMessage result) { if (Notifications.temNotificacoes()) { ResponseMessage = Request.CreateResponse(result.StatusCode, Notifications.Notifica()); result = ResponseMessage; } var tsc = new TaskCompletionSource <HttpResponseMessage>(); tsc.SetResult(result); return(tsc.Task); }
public static IList <DominioNotificacoes> Notificacoes() { notifications = DominioEvento.Container.GetService <IManipulador <DominioNotificacoes> >(); return(notifications.Notifica().ToList()); }