DistributedApplicationBuilder
Classnet10.0
A builder for creating instances of
DistributedApplication . namespace Aspire.Hosting;
public class DistributedApplicationBuilder : Aspire.Hosting.IDistributedApplicationBuilder{ // ...}17 members
Remarks
Section titled Remarks The Distributed is the primary implementation of I within Aspire. Typically a developer would interact with instances of this class via the I interface which was created using one of the Distributed overloads.
For more information on how to configure the Distributed using the the builder pattern see I.
Constructors2
Section titled Constructors Initializes a new instance of the
DistributedApplicationBuilder class with the specified options. Initializes a new instance of the
DistributedApplicationBuilder class with the specified options. Properties12
Section titled Propertiesstring Directory of the project where the AppHost is located. Defaults to the content root if there's no project.
AppHostPath getstringEnvironmentgetIHostEnvironment Gets the information about the hosting environment an application is running in.
Execution context for this invocation of the AppHost.
Pipelineget Gets the deployment pipeline for this distributed application.
ServicesgetIServiceCollection Gets a collection of services for the application to compose. This is useful for adding user provided or framework provided services.
Methods3
Section titled Methods Builds and returns a new
DistributedApplication instance. This can only be called once. Creates a new resource builder based on an existing resource.