/// <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, IResourceHealth2 resource, CancellationToken cancellationToken = default) { await AddResourceHealthAsync(resourceName, resource.GetResourceHealth2Async, cancellationToken); }
public void Initialize() { _goombaResource = new GoombaResource(); }