Пример #1
0
 protected void startTheReceiver(Action <JasperOptions> configure)
 {
     _counter  = new MessageCounter();
     _receiver = Host
                 .CreateDefaultBuilder()
                 .UseJasper(configure)
                 .ConfigureServices(s => s.AddSingleton(_counter))
                 .Start();
 }
Пример #2
0
 public void Handle(SmallMessage message, MessageCounter counter)
 {
     counter.Increment();
 }