public void Setup(BenchmarkContext context)
 {
     _configurator      = Configurator();
     _dispatcher        = _configurator.Dispatcher();
     _dispatcherCounter = context.GetCounter(DispatcherCounterName);
     ScheduledWork      = () =>
     {
         _dispatcherCounter.Increment();
         if (Interlocked.Increment(ref _messagesSeen) == ScheduleCount)
         {
             EventBlock.Set();
         }
     };
     Warmup(_dispatcher);
 }
示例#2
0
 public void Setup(BenchmarkContext context)
 {
     Sys                = ActorSystem.Create("Sys");
     Prereqs            = new DefaultDispatcherPrerequisites(Sys.EventStream, Sys.Scheduler, Sys.Settings, Sys.Mailboxes);
     _configurator      = Configurator();
     _dispatcher        = _configurator.Dispatcher();
     _dispatcherCounter = context.GetCounter(DispatcherCounterName);
     ScheduledWork      = () =>
     {
         _dispatcherCounter.Increment();
         if (Interlocked.Increment(ref _messagesSeen) == ScheduleCount)
         {
             EventBlock.Set();
         }
     };
     Warmup(_dispatcher);
 }
 /// <summary>
 /// TBD
 /// </summary>
 /// <param name="configurator">TBD</param>
 public CallingThreadDispatcher(MessageDispatcherConfigurator configurator) : base(configurator)
 {
 }
示例#4
0
 public DispatcherImpl(MessageDispatcherConfigurator configurator) : base(configurator)
 {
 }
示例#5
0
 public MessageDispatcherInterceptor(MessageDispatcherConfigurator configurator, string id, int throughput, long?throughputDeadlineTime, ExecutorServiceFactory executorServiceFactory, TimeSpan shutdownTimeout) : base(configurator, id, throughput, throughputDeadlineTime, executorServiceFactory, shutdownTimeout)
 {
 }
示例#6
0
 /// <summary>
 /// Takes a <see cref="MessageDispatcherConfigurator"/>
 /// </summary>
 public AwaitableTaskDispatcher(MessageDispatcherConfigurator configurator) : base(configurator)
 {
 }