Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Run(CancellationToken cancellationToken)
- {
- while (!cancellationToken.IsCancellationRequested)
- {
- try
- {
- ReloadCacheIfNeeded();
- UpdateTopology();
- }
- catch (Exception ex)
- {
- Log.Error("Unexpected error while updating ACME topology.", ex);
- }
- finally
- {
- cancellationToken.WaitHandle.WaitOne(TimeSpan.FromMinutes(_configuration.TopologyUpdateIntervalInMinutes));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement