DistributedApplicationBuilder Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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[])
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈