DistributedApplicationFactory Class
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.
Factory for creating a distributed application for testing.
public class DistributedApplicationFactory : IAsyncDisposable, IDisposable
type DistributedApplicationFactory = class
interface IDisposable
interface IAsyncDisposable
Public Class DistributedApplicationFactory
Implements IAsyncDisposable, IDisposable
- Inheritance
-
DistributedApplicationFactory
- Implements
Constructors
DistributedApplicationFactory(Type, String[]) |
Factory for creating a distributed application for testing. |
DistributedApplicationFactory(Type) |
Initializes a new instance of the DistributedApplicationFactory class. |
Methods
CreateHttpClient(String, String) |
Creates an instance of HttpClient that is configured to route requests to the specified resource and endpoint. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
DisposeAsync() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
GetConnectionString(String) |
Gets the connection string for the specified resource. |
GetEndpoint(String, String) |
Gets the endpoint for the specified resource. |
OnBuilderCreated(DistributedApplicationBuilder) |
Called when the application builder is created. |
OnBuilderCreating(DistributedApplicationOptions, HostApplicationBuilderSettings) |
Called when the application builder is being created. |
OnBuilding(DistributedApplicationBuilder) |
Called when the application is being built. |
OnBuilt(DistributedApplication) |
Called when the application has been built. |
StartAsync(CancellationToken) |
Starts the application. |