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 DistributedApplicationBuilder is the primary implementation of IDistributedApplicationBuilder within Aspire. Typically a developer would interact with instances of this class via the IDistributedApplicationBuilder interface which was created using one of the DistributedApplication.CreateBuilder overloads.
For more information on how to configure the DistributedApplication using the the builder pattern see IDistributedApplicationBuilder.
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.
AppHostPathgetstringEnvironmentgetIHostEnvironment 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.