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.

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