Ejemplo n.º 1
0
 public void run()
 {
     var receiver = Resolve.the<RhinoReceiver>();
     var handler = new MessageHandler(Resolve.the<DependencyRegistry>());
     receiver.register(x =>
     {
         handler.handler(x);
     });
     Resolve.the<CommandProcessor>().add(receiver);
 }
Ejemplo n.º 2
0
 public void run()
 {
     var receiver = Resolve.the<RhinoReceiver>();
     var handler = new MessageHandler(Resolve.the<DependencyRegistry>());
     receiver.register(x =>
     {
         handler.handler(x);
     });
     Resolve.the<CommandProcessor>().add(receiver);
     "sending ping {0}".log(DateTime.Now);
     Resolve.the<ServiceBus>().publish<Message>(x =>
     {
         x.source = "client";
         x.message = "ping";
     });
 }