DistributedApplicationBuilder Constructors

Definition

Overloads

DistributedApplicationBuilder(DistributedApplicationOptions)

Initializes a new instance of the DistributedApplicationBuilder class with the specified options.

DistributedApplicationBuilder(String[])

Initializes a new instance of the DistributedApplicationBuilder class with the specified options.

DistributedApplicationBuilder(DistributedApplicationOptions)

Source:
DistributedApplicationBuilder.cs

Initializes a new instance of the DistributedApplicationBuilder class with the specified options.

public DistributedApplicationBuilder (Aspire.Hosting.DistributedApplicationOptions options);
new Aspire.Hosting.DistributedApplicationBuilder : Aspire.Hosting.DistributedApplicationOptions -> Aspire.Hosting.DistributedApplicationBuilder
Public Sub New (options As DistributedApplicationOptions)

Parameters

options
DistributedApplicationOptions

The options for the distributed application.

Remarks

Developers will not typically construct an instance of the DistributedApplicationBuilder class themselves and will instead use the CreateBuilder(String[]). This constructor is public to allow for some testing around extensibility scenarios.

This constructor generates an instance of the IDistributedApplicationBuilder interface which is very similar to the instance that is returned from CreateBuilder(String[]) however it is not guaranteed to be 100% consistent. For typical usage it is recommended that the CreateBuilder(String[]) method is to create instances of the IDistributedApplicationBuilder interface.

Applies to

DistributedApplicationBuilder(String[])

Source:
DistributedApplicationBuilder.cs

Initializes a new instance of the DistributedApplicationBuilder class with the specified options.

public DistributedApplicationBuilder (string[] args);
new Aspire.Hosting.DistributedApplicationBuilder : string[] -> Aspire.Hosting.DistributedApplicationBuilder
Public Sub New (args As String())

Parameters

args
String[]

The arguments provided to the builder.

Remarks

Developers will not typically construct an instance of the DistributedApplicationBuilder class themselves and will instead use the CreateBuilder(String[]). This constructor is public to allow for some testing around extensibility scenarios.

Applies to