示例#1
0
 /// <summary>
 /// Creates a new <see cref="BotRestarter"/>.
 /// </summary>
 /// <param name="logger">The <see cref="ILogger"/> that will be used to log messages to the console.</param>
 /// <param name="consoleReSetterTimer">The <see cref="ConsoleReSetterTimer"/> that will be used.</param>
 /// <param name="botReader">The <see cref="IBotReader"/> that will be used to load all the bots and check for should restart values.</param>
 /// <param name="commands">The <see cref="IConsoleCommands"/> that will be used.</param>
 public BotRestarter(ILogger logger, ConsoleReSetterTimer consoleReSetterTimer, IBotReader botReader, IConsoleCommands commands)
 {
     _logger = logger;
     _consoleReSetterTimer = consoleReSetterTimer;
     _botReader            = botReader;
     _commands             = commands;
 }
 /// <summary>
 /// Creates a new <see cref="ConsoleCommands"/>.
 /// </summary>
 /// <param name="logger">The <see cref="ILogger"/> that will be used to log messages to the console.</param>
 /// <param name="botReader">The <see cref="IBotReader"/> that will be used to load all the bots and check for should restart values.</param>
 public ConsoleCommands(ILogger logger, IBotReader botReader)
 {
     _logger    = logger;
     _botReader = botReader;
 }