Share via


ProjectResourceBuilderExtensions Class

Definition

Provides extension methods for IDistributedApplicationBuilder to add and configure project resources.

public static class ProjectResourceBuilderExtensions
type ProjectResourceBuilderExtensions = class
Public Module ProjectResourceBuilderExtensions
Inheritance
ProjectResourceBuilderExtensions

Methods

AddProject(IDistributedApplicationBuilder, String, String, Action<ProjectResourceOptions>)

Adds a .NET project to the application model.

AddProject(IDistributedApplicationBuilder, String, String, String)

Adds a .NET project to the application model.

AddProject(IDistributedApplicationBuilder, String, String)

Adds a .NET project to the application model.

AddProject<TProject>(IDistributedApplicationBuilder, String, Action<ProjectResourceOptions>)

Adds a .NET project to the application model.

AddProject<TProject>(IDistributedApplicationBuilder, String, String)

Adds a .NET project to the application model. By default, this will exist in a Projects namespace. e.g. Projects.MyProject. If the project is not in a Projects namespace, make sure a project reference is added from the AppHost project to the target project.

AddProject<TProject>(IDistributedApplicationBuilder, String)

Adds a .NET project to the application model.

DisableForwardedHeaders(IResourceBuilder<ProjectResource>)

Configures the project to disable forwarded headers when being published.

PublishAsDockerFile<T>(IResourceBuilder<T>, Action<IResourceBuilder<ContainerResource>>)

Adds support for containerizing this ProjectResource during deployment. The resulting container image is built, and when the optional configure action is provided, it is used to configure the container resource.

WithEndpointsInEnvironment(IResourceBuilder<ProjectResource>, Func<EndpointAnnotation,Boolean>)

Set a filter that determines if environment variables are injected for a given endpoint. By default, all endpoints are included (if this method is not called).

WithReplicas(IResourceBuilder<ProjectResource>, Int32)

Configures how many replicas of the project should be created for the project.

Applies to