Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public static IList <DominioNotificacoes> Notificacoes()
        {
            notifications = DominioEvento.Container.GetService <IManipulador <DominioNotificacoes> >();

            return(notifications.Notifica().ToList());
        }