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
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. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for