Ejemplo n.º 1
0
        public void Alert()
        {
            service.AddConnection();

            service.AddOn <Message>(OnMessageEvent);
            var message = dbContext.Messages.FirstOrDefault(m => m.Reciever.UserName == "Varunastra" && m.Sender.UserName == "Valera");

            service.Alert(message);

            service.AddOn <Friendship>(OnRequestEvent);
            var chat = dbContext.Friendships.FirstOrDefault(c => c.Reciever.UserName == "Varunastra" && c.Sender.UserName == "Valera");

            service.Alert(chat);
        }