Ejemplo n.º 1
0
 private void pushToQueue(DB4Thing db4Thing, QueueMessageType messageType)
 {
     // Put on the queue for comment processing
     _queue.Push(new QueueMessage(messageType, JsonConvert.SerializeObject(db4Thing), DateTime.UtcNow));
 }
Ejemplo n.º 2
0
 public QueueMessage(QueueMessageType type, string payload, DateTime createdUtc)
 {
     Type       = type;
     Payload    = payload;
     CreatedUtc = createdUtc;
 }