public TimerHealthCheckHelper(IBlobStorageFactory blobStorageFactory, IDateTimeService dateTimeService, TimerHealthCheckHelperOptions options, ILogger <TimerHealthCheckHelper> logger)
 {
     _blobStorageFactory = blobStorageFactory;
     _options            = options;
     _dateTimeService    = dateTimeService;
     _logger             = logger;
 }
示例#2
0
 public TimerTriggerHealthCheck(IBlobStorageFactory blobFactory, IDateTimeService dateTimeService, TimerTriggerHealthCheckOptions options, TimerHealthCheckHelperOptions helperOptions, List <TimerTriggerInfo> timerTriggers)
 {
     _dateTimeService = dateTimeService;
     _blobStorage     = blobFactory.GetBlobStorage(helperOptions.AzureWebJobsStorageConnectionString, "azure-webjobs-hosts");
     _options         = options;
     _timerTriggers   = timerTriggers;
     _helperOptions   = helperOptions;
 }
 internal static string GetBlobPath(string?fullTypeName, TimerHealthCheckHelperOptions options)
 {
     if (fullTypeName == null)
     {
         throw new ArgumentNullException(nameof(fullTypeName), "Full Type Name must not be null. This exception should never happen");
     }
     if (!string.IsNullOrWhiteSpace(options.AzureWebSiteName))
     {
         return($"timercheckpoints/{options.AzureWebSiteName}/{fullTypeName}/status");
     }
     else
     {
         return($"timercheckpoints/{fullTypeName}/status");
     }
 }