| File: ApplicationModel\ResourceReadyEvent.cs | Web Access |
| Project: src\src\Aspire.Hosting\Aspire.Hosting.csproj (Aspire.Hosting) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Aspire.Hosting.Eventing; namespace Aspire.Hosting.ApplicationModel; /// <summary> /// Event that is raised when a resource initially transitions to a ready state. /// </summary> /// <param name="resource">The resource that is in a ready state.</param> /// <param name="services">The service provider for the app host.</param> /// <remarks> /// This event is only fired the first time a resource transitions to a ready state after starting. /// </remarks> [AspireExport(ExposeProperties = true)] public class ResourceReadyEvent(IResource resource, IServiceProvider services) : IDistributedApplicationResourceEvent { /// <summary> /// The resource that is in a healthy state. /// </summary> public IResource Resource => resource; /// <inheritdoc /> public IServiceProvider Services => services; }