ExternalServiceBuilderExtensions
Class static net10.0
Provides extension methods for adding external services to an application.
namespace Aspire.Hosting;
public static class ExternalServiceBuilderExtensions{ // ...}Methods4
Section titled MethodsAddExternalService(IDistributedApplicationBuilder, string, string)extensionIResourceBuilder<ExternalServiceResource> Adds an external service resource to the distributed application with the specified URL.
AddExternalService(IDistributedApplicationBuilder, string, Uri)extensionIResourceBuilder<ExternalServiceResource> Adds an external service resource to the distributed application with the specified URI.
AddExternalService(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>)extensionIResourceBuilder<ExternalServiceResource> Adds an external service resource to the distributed application with the URL coming from the specified parameter.
WithHttpHealthCheck(IResourceBuilder<ExternalServiceResource>, string?, int?)extensionIResourceBuilder<ExternalServiceResource> Adds a health check to the external service resource.