This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(?<=\[)([\w\s]*)([a-zA-Z\s]+)([\w\s]*)(?=\]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class CronJobService : IHostedService, IDisposable | |
{ | |
private System.Timers.Timer _timer; | |
private readonly CronExpression _expression; | |
private readonly TimeZoneInfo _timeZoneInfo; | |
protected CronJobService(string cronExpression, TimeZoneInfo timeZoneInfo) | |
{ | |
_expression = CronExpression.Parse(cronExpression); | |
_timeZoneInfo = timeZoneInfo; |