Example #1
0
 protected static void SendTestMessages(EndpointBehaviorBuilder <Context> b)
 {
     b.Given((bus, context) => Parallel.For(0, context.NumberOfTestMessages, (s, c) => bus.SendLocal(new MyMessage
     {
         SomeId = Guid.NewGuid()
     })));
 }
Example #2
0
 private static EndpointBehaviorBuilder <Context> SendMessages(EndpointBehaviorBuilder <Context> b)
 {
     return(b.Given((bus, context) => Parallel.For(0, context.NumberOfTestMessages, (s, c) => bus.Send(new MyMessage()))));
 }
Example #3
0
 EndpointBehaviorBuilder <Context> SendMessages(EndpointBehaviorBuilder <Context> b)
 {
     return(b.Given((bus, context) => bus.SendLocal(new Message())));
 }