コード例 #1
0
            public void SetLastCompletedTime(DateTimeOffset dateTime)
            {
                var blobPath = TimerHealthCheckHelper.GetBlobPath(TimerTriggerInfos.Single().TimerFullTypeName, HelperOptions);
                var status   = new TimerHealthCheckStatus {
                    LastCheckpoint = dateTime
                };

                MockBlobStorage.Setup(x => x.DownloadFileAsTextAsync(It.Is <string>(y => y == blobPath), It.IsAny <CancellationToken>())).ReturnsAsync(JsonSerializer.Serialize(status));
            }
コード例 #2
0
 public TimerTriggerFunction(TimerHealthCheckHelper timerHelper)
 {
     _timerHelper = timerHelper;
 }