private async Task RunAsync() { while (true) { await RuleManager.ExecuteAsync(); Thread.Sleep(5 * 60 * 1000); //5 minutes } }