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() }; }
public void Send(QueueMessage message) { using (var mq = GetQueue()) { Message m = new Message(message) { Label = message.Type, Recoverable = true }; mq.Send(m); } }
public void Push(QueueMessage message) { }
public QueueMessage Get(QueueMessage message) { return new QueueMessage(); }
public void Push(QueueMessage message) { if (message == null) throw new ArgumentNullException("message"); _queueManager.Send(message); }