public SessionKeepAliveJob(OGameClient client, SessionKeepAliveMode mode, int planetId) { _client = client; ExecutionInterval = TimeSpan.FromMinutes(5); using (BotDb db = new BotDb()) { _planets = db.Planets.Where(p => p.PlanetId != null).Select(p => p.PlanetId.Value).ToList(); } Mode = mode; PlanetId = planetId; }
public SessionKeepAliveJob(OGameClient client, SessionKeepAliveMode mode) : this(client, mode, 0) { }