# ExternalServiceBuilderExtensions

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ExternalServiceBuilderExtensions.cs)

Provides extension methods for adding external services to an application.

## Definition

```csharp
namespace Aspire.Hosting;

public static class ExternalServiceBuilderExtensions
{
    // ...
}
```

## Methods

- [AddExternalService(IDistributedApplicationBuilder, string, string)](/reference/api/csharp/aspire.hosting/externalservicebuilderextensions/methods.md#addexternalservice-idistributedapplicationbuilder-string-string) : `IResourceBuilder<ExternalServiceResource>` `extension` `ats ignored` -- Adds an external service resource to the distributed application with the specified URL.
- [AddExternalService(IDistributedApplicationBuilder, string, Uri)](/reference/api/csharp/aspire.hosting/externalservicebuilderextensions/methods.md#addexternalservice-idistributedapplicationbuilder-string-uri) : `IResourceBuilder<ExternalServiceResource>` `extension` `ats ignored` -- Adds an external service resource to the distributed application with the specified URI.
- [AddExternalService(IDistributedApplicationBuilder, string, IResourceBuilder<ParameterResource>)](/reference/api/csharp/aspire.hosting/externalservicebuilderextensions/methods.md#addexternalservice-idistributedapplicationbuilder-string-iresourcebuilder-parameterresource) : `IResourceBuilder<ExternalServiceResource>` `extension` `ats ignored` -- Adds an external service resource to the distributed application with the URL coming from the specified parameter.
- [WithHttpHealthCheck(IResourceBuilder<ExternalServiceResource>, string?, int?)](/reference/api/csharp/aspire.hosting/externalservicebuilderextensions/methods.md#withhttphealthcheck-iresourcebuilder-externalserviceresource-string-int) : `IResourceBuilder<ExternalServiceResource>` `extension` `ats ignored` -- Adds a health check to the external service resource.
