IDistributedApplicationTestingBuilder Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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. |