示例#1
0
 public BotSchedulerModule(ILogger Logger, IPIOService Client, IBotModule BotModule, IOrderManagerModule OrderManager, int RetryDelay, ThreadPriority Priority = ThreadPriority.Normal, int StopTimeout = 5000) : base(Logger, Priority, StopTimeout)
 {
     this.client       = Client;
     this.botModule    = BotModule;
     this.orderManager = OrderManager;
     this.retryDelay   = RetryDelay;
 }
示例#2
0
文件: BotsService.cs 项目: dfgs/PIO
 public BotsService(ILogger Logger,
                    IBotModule BotModule, IOrderModule OrderModule,
                    IProduceOrderModule ProduceOrderModule, IHarvestOrderModule HarvestOrderModule,
                    IBuildOrderModule BuildFactoryOrderModule,
                    IBotSchedulerModule BotSchedulerModule, IOrderManagerModule OrderManagerModule
                    ) : base(Logger)
 {
     LogEnter();
     this.botModule               = BotModule; this.orderModule = OrderModule;
     this.produceOrderModule      = ProduceOrderModule; this.harvestOrderModule = HarvestOrderModule;
     this.buildFactoryOrderModule = BuildFactoryOrderModule;
     this.botSchedulerModule      = BotSchedulerModule;
     this.orderManagerModule      = OrderManagerModule;
 }
示例#3
0
 /// <summary>
 ///     Registers a new bot module
 /// </summary>
 /// <param name="module">Module to add</param>
 public void RegisterModule(IBotModule module)
 {
     _modules[module.Identifier] = module;
 }
示例#4
0
 /// <summary>
 ///     Registers a new bot module
 /// </summary>
 /// <param name="module">Module to add</param>
 public void RegisterModule(IBotModule module)
 {
     _modules[module.Identifier] = module;
 }