Partager via


IDistributedApplicationTestingBuilder Interface

Definition

A builder for creating instances of DistributedApplication for testing purposes.

public interface IDistributedApplicationTestingBuilder
type IDistributedApplicationTestingBuilder = interface
Public Interface IDistributedApplicationTestingBuilder

Properties

AppHostAssembly

The assembly of the app host.

AppHostDirectory

Directory of the project where the app host is located. Defaults to the content root if there's no project.

Configuration

Gets the set of key/value configuration properties.

Environment

Gets information about the hosting environment an application is running in.

ExecutionContext

Execution context for this invocation of the AppHost.

Resources

Gets the collection of resources for the distributed application.

Services

Gets a collection of services for the application to compose. This property is useful for adding user-provided or framework-provided services.

Methods

AddResource<T>(T)

Adds a resource of type T to the distributed application.

BuildAsync(CancellationToken)

Builds and returns a new DistributedApplication instance. This can only be called once.

CreateResourceBuilder<T>(T)

Creates a new resource innerBuilder based on an existing resource.

Applies to