Esempio n. 1
0
 public static IEnumerable<Message> Messages()
 {
     var messages = new List<Message>();
     var result = new Result();
     var orm = new Orm(new MSSQLData());
     log.Info("getting messages from db");
     result = orm.execObject<Result>(null, "mess.dequeue_message");
     if (result.Message != null)
     {
         messages.AddRange(result.Message);
     }
     return messages;
 }
Esempio n. 2
0
        public static IEnumerable <Message> Messages()
        {
            var messages = new List <Message>();
            var result   = new Result();
            var orm      = new Orm(new MSSQLData());

            log.Info("getting messages from db");
            result = orm.execObject <Result>(null, "mess.dequeue_message");
            if (result.Message != null)
            {
                messages.AddRange(result.Message);
            }
            return(messages);
        }