Beispiel #1
0
 /// <summary>
 /// Check the health of a specific resource and aggregate it to the complete health state.
 /// </summary>
 /// <param name="resourceName">The name to use for the resource</param>
 /// <param name="resource">A resource that we want to get the health for and add it to the aggregated health.</param>
 public async Task AddResourceHealthAsync(string resourceName, IResourceHealth resource)
 {
     await AddResourceHealthAsync(resourceName, resource.GetResourceHealthAsync);
 }
 /// <summary>
 /// Check the health of a specific resource and aggregate it to the complete health state.
 /// </summary>
 /// <param name="resourceName">The name to use for the resource</param>
 /// <param name="resource">A resource that we want to get the health for and add it to the aggregated health.</param>
 /// <param name="cancellationToken"></param>
 public async Task AddResourceHealthAsync(string resourceName, IResourceHealth resource, CancellationToken cancellationToken = default)
 {
     await AddResourceHealthAsync(resourceName, resource.GetResourceHealthAsync, cancellationToken);
 }