Пример #1
0
        public async Task RunAsync()
        {
            _logger.LogTrace("RunAsync()");

            if (_snapshootOptions.MakeSnapShootEachSeconds > 0)
            {
                if (EnableTask)
                {
                    _seleniumWrapper.EnableTimerSnapShoot(_persistenceManager.BaseFileName, _snapshootOptions.MakeSnapShootEachSeconds * 1000);
                }
                else
                {
                    _seleniumWrapper.DisableTimerSnapShoot();
                }
            }

            await Task.CompletedTask; // fake await since no awaitable action here
        }