public void Consume(MyMessageB messageA)
            {
                var detail = _context();

                Assert.AreEqual("valid", detail.Token);
                var txt = string.Format("Consume B: {0} created on {1}", detail.MessageId, detail.Created);

                Trace.WriteLine(txt);
            }
Exemple #2
0
 public Task Handle(MyMessageB message, IMessageHandlerContext context)
 {
     Context.MessageIdB = context.MessageId.Replace(@"\", "-");
     throw new Exception("Simulated exception");
 }
 public void Handle(MyMessageB message)
 {
     Context.MessageIdB = Bus.CurrentMessageContext.Id.Replace(@"\", "-");
     throw new Exception("Simulated exception");
 }