ExternalServiceBuilderExtensions
Class static net8.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)extensionats exportIResourceBuilder<ExternalServiceResource> Adds an external service resource to the distributed application with the specified URL.
AddExternalService(IDistributedApplicationBuilder, string, Uri)extensionats exportIResourceBuilder<ExternalServiceResource> Adds an external service resource to the distributed application with the specified URI.
AddExternalService(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>)extensionats exportIResourceBuilder<ExternalServiceResource> Adds an external service resource to the distributed application with the URL coming from the specified parameter.
WithHttpHealthCheck(IResourceBuilder<ExternalServiceResource>, string?, int?)extensionats exportIResourceBuilder<ExternalServiceResource> Adds a health check to the external service resource.