/// <summary> /// Initializes a new instance of the <see cref="SimpleScheduler"/> class. /// </summary> /// <param name="applicationMapPath"> /// The application map path. /// </param> /// <param name="connection"> /// The connection. /// </param> /// <param name="period"> /// The period. /// </param> /// <remarks> /// </remarks> protected SimpleScheduler(string applicationMapPath, IDbConnection connection, long period) { this.localSchDB = new SchedulerDB(connection, applicationMapPath); this.localPeriod = period; this.localTimerState = new TimerState(); var t = new Timer(this.Schedule, this.localTimerState, Timeout.Infinite, Timeout.Infinite); this.localTimerState.Timer = t; }