Skip to content
Docs Try Aspire

ResourceNotificationService

Class net10.0
📦 Aspire.Hosting v13.1.2
A service that allows publishing and subscribing to changes in the state of a resource.
namespace Aspire.Hosting.ApplicationModel;
public class ResourceNotificationService
: System.IDisposable
{
// ...
}
IDisposable
View all constructors
Dispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
PublishUpdateAsync(IResource, string, Func<CustomResourceSnapshot, CustomResourceSnapshot>)
Task
PublishUpdateAsync(IResource, Func<CustomResourceSnapshot, CustomResourceSnapshot>)
Task
TryGetCurrentState(string, ResourceEvent?)
bool
Attempts to retrieve the current state of a resource by resourceId.
WaitForDependenciesAsync(IResource, CancellationToken)
Task
Waits for all dependencies of the resource to be ready.
WaitForResourceAsync(string, string?, CancellationToken)
Task
WaitForResourceAsync(string, IEnumerable<string>, CancellationToken)
Task<string>
WaitForResourceAsync(string, Func<ResourceEvent, bool>, CancellationToken)
Waits until a resource satisfies the specified predicate.
WaitForResourceHealthyAsync(string, CancellationToken)
Waits for a resource to become healthy.
WaitForResourceHealthyAsync(string, WaitBehavior, CancellationToken)
Waits for a resource to become healthy.
WatchAsync(CancellationToken)
Watch for changes to the state for all resources.
View all methods