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) |
Factory for creating a distributed application for testing. |
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) |
Initializes the application. |
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