Exemple #1
0
 /// <summary>
 /// Used to create a default <see cref="Dispatcher"/>
 /// </summary>
 /// <param name="configurator">The configurator used.</param>
 /// <param name="id">The id of this dispatcher.</param>
 /// <param name="throughput">The throughput of this dispatcher.</param>
 /// <param name="throughputDeadlineTime">The deadline for completing N (where N = throughput) operations on the mailbox..</param>
 /// <param name="executorServiceFactory">The factory for producing the executor who will do the work.</param>
 /// <param name="shutdownTimeout">The graceful stop timeout period.</param>
 public Dispatcher(MessageDispatcherConfigurator configurator, string id, int throughput, long?throughputDeadlineTime,
                   ExecutorServiceFactory executorServiceFactory, TimeSpan shutdownTimeout) : base(configurator)
 {
     _executorService = new LazyExecutorServiceDelegate(id, executorServiceFactory);
     Id                     = id;
     Throughput             = throughput;
     ThroughputDeadlineTime = throughputDeadlineTime;
     ShutdownTimeout        = shutdownTimeout;
 }
Exemple #2
0
 /// <summary>
 /// Used to create a default <see cref="Dispatcher"/>
 /// </summary>
 /// <param name="configurator">The configurator used.</param>
 /// <param name="id">The id of this dispatcher.</param>
 /// <param name="throughput">The throughput of this dispatcher.</param>
 /// <param name="throughputDeadlineTime">The deadline for completing N (where N = throughput) operations on the mailbox..</param>
 /// <param name="executorServiceFactory">The factory for producing the executor who will do the work.</param>
 /// <param name="shutdownTimeout">The graceful stop timeout period.</param>
 public Dispatcher(MessageDispatcherConfigurator configurator, string id, int throughput, long? throughputDeadlineTime,
     ExecutorServiceFactory executorServiceFactory, TimeSpan shutdownTimeout) : base(configurator)
 {
     _executorService = new LazyExecutorServiceDelegate(id, executorServiceFactory);
     Id = id;
     Throughput = throughput;
     ThroughputDeadlineTime = throughputDeadlineTime;
     ShutdownTimeout = shutdownTimeout;
 }