Ejemplo n.º 1
0
        public async Task Run([TimerTrigger("0 40 5 * * *")] TimerInfo myTimer, ILogger log)
        {
            if (myTimer?.IsPastDue ?? true)
            {
                log.LogTrace("Remove heartbeats for conferences function running late");
            }

            await _removeHeartbeatsForConferencesService.RemoveHeartbeatsForConferencesAsync().ConfigureAwait(false);

            log.LogInformation("Removed heartbeats for conferences older than 14 days.");
        }
 public void Should_remove_heartbeats_for_old_conferences()
 {
     _removeHeartbeatsForConferencesService.RemoveHeartbeatsForConferencesAsync();
     _videoApiClient.Verify(x => x.RemoveHeartbeatsForConferencesAsync(), Times.Once);
 }