예제 #1
0
 public QueueMessage Get(QueueMessage message)
 {
     if (message == null)
         throw new ArgumentNullException("message");
     var res = _queueManager.Read("Test");
     return new QueueMessage { Id = Guid.NewGuid(), Date = DateTime.Now, Type = "Response", Container = res.Count().ToString() };
 }
예제 #2
0
 public void Send(QueueMessage message)
 {
     using (var mq = GetQueue())
     {
         Message m = new Message(message) { Label = message.Type, Recoverable = true };
         mq.Send(m);
     }
 }
예제 #3
0
 public void Push(QueueMessage message)
 {
 }
예제 #4
0
 public QueueMessage Get(QueueMessage message)
 {
     return new QueueMessage();
 }
예제 #5
0
 public void Push(QueueMessage message)
 {
     if (message == null)
         throw new ArgumentNullException("message");
     _queueManager.Send(message);
 }