Share via


Service.DependsOn Property

Definition

Specifies a list of services that this service depends on. The dependencies are expressed as service names with optional conditions. Supported conditions are: "service_started", "service_healthy", "service_completed_successfully" This property defines the order in which services should be started, ensuring that the specified services are initialized before the current service.

[YamlDotNet.Serialization.YamlMember(Alias="depends_on", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)]
public System.Collections.Generic.Dictionary<string,Aspire.Hosting.Docker.Resources.ComposeNodes.ServiceDependency> DependsOn { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="depends_on", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)>]
member this.DependsOn : System.Collections.Generic.Dictionary<string, Aspire.Hosting.Docker.Resources.ComposeNodes.ServiceDependency> with get, set
Public Property DependsOn As Dictionary(Of String, ServiceDependency)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to