public IrcReadWriteExchange(IBotRuntime botRuntime) { if (botRuntime == null) { throw new ArgumentNullException("botRuntime"); } _queue = new ConcurrentQueue <string>(); _botRuntime = botRuntime; }
public KeyboardListener(IBotRuntime runtime, IDbBootstrap bootstrap, IQuartzScheduler quartzScheduler) { if (runtime == null) { throw new ArgumentNullException("runtime"); } if (bootstrap == null) { throw new ArgumentNullException("bootstrap"); } if (quartzScheduler == null) { throw new ArgumentNullException("quartzScheduler"); } _lockObj = new object(); _consoleKeyInfos = new BlockingCollection <ConsoleKeyInfo>(); _runtime = runtime; _bootstrap = bootstrap; _quartzScheduler = quartzScheduler; }