Share via


ExternalServiceBuilderExtensions.AddExternalService Method

Definition

Overloads

AddExternalService(IDistributedApplicationBuilder, String, IResourceBuilder<ParameterResource>)

Adds an external service resource to the distributed application with the URL coming from the specified parameter.

AddExternalService(IDistributedApplicationBuilder, String, String)

Adds an external service resource to the distributed application with the specified URL.

AddExternalService(IDistributedApplicationBuilder, String, Uri)

Adds an external service resource to the distributed application with the specified URI.

AddExternalService(IDistributedApplicationBuilder, String, IResourceBuilder<ParameterResource>)

Source:
ExternalServiceBuilderExtensions.cs

Adds an external service resource to the distributed application with the URL coming from the specified parameter.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ExternalServiceResource> AddExternalService(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> urlParameter);
static member AddExternalService : Aspire.Hosting.IDistributedApplicationBuilder * string * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ExternalServiceResource>
<Extension()>
Public Function AddExternalService (builder As IDistributedApplicationBuilder, name As String, urlParameter As IResourceBuilder(Of ParameterResource)) As IResourceBuilder(Of ExternalServiceResource)

Parameters

builder
IDistributedApplicationBuilder

The distributed application builder.

name
String

The name of the resource.

urlParameter
IResourceBuilder<ParameterResource>

The parameter containing the URL of the external service.

Returns

An IResourceBuilder<T> instance.

Applies to

AddExternalService(IDistributedApplicationBuilder, String, String)

Source:
ExternalServiceBuilderExtensions.cs

Adds an external service resource to the distributed application with the specified URL.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ExternalServiceResource> AddExternalService(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, string url);
static member AddExternalService : Aspire.Hosting.IDistributedApplicationBuilder * string * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ExternalServiceResource>
<Extension()>
Public Function AddExternalService (builder As IDistributedApplicationBuilder, name As String, url As String) As IResourceBuilder(Of ExternalServiceResource)

Parameters

builder
IDistributedApplicationBuilder

The distributed application builder.

name
String

The name of the resource.

url
String

The URL of the external service.

Returns

An IResourceBuilder<T> instance.

Applies to

AddExternalService(IDistributedApplicationBuilder, String, Uri)

Source:
ExternalServiceBuilderExtensions.cs

Adds an external service resource to the distributed application with the specified URI.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ExternalServiceResource> AddExternalService(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Uri uri);
static member AddExternalService : Aspire.Hosting.IDistributedApplicationBuilder * string * Uri -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ExternalServiceResource>
<Extension()>
Public Function AddExternalService (builder As IDistributedApplicationBuilder, name As String, uri As Uri) As IResourceBuilder(Of ExternalServiceResource)

Parameters

builder
IDistributedApplicationBuilder

The distributed application builder.

name
String

The name of the resource.

uri
Uri

The URI of the external service.

Returns

An IResourceBuilder<T> instance.

Applies to