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; }
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; }
/// <summary> /// Registers a new bot module /// </summary> /// <param name="module">Module to add</param> public void RegisterModule(IBotModule module) { _modules[module.Identifier] = module; }