Beispiel #1
0
        public static void Enqueue(this IDocumentSession session, HybridDbMessage message, string topic = null)
        {
            var queueTable = session.Advanced.DocumentStore.Configuration.Tables.Values.OfType <QueueTable>().Single();

            session.Advanced.Defer(new EnqueueCommand(queueTable, message, topic));
        }
Beispiel #2
0
 public EnqueueCommand(QueueTable table, HybridDbMessage message, string topic = null)
 {
     Table   = table;
     Message = message;
     Topic   = topic ?? "messages";
 }