DistributedApplicationHostingTestingExtensions
Class static net10.0
Extensions for working with
Hosting.DistributedApplication in test code. namespace Aspire.Hosting.Testing;
public static class DistributedApplicationHostingTestingExtensions{ // ...}Methods4
Section titled MethodsCreateHttpClient(DistributedApplication, string, string?)extensionats ignoredHttpClient Creates an
Http.HttpClient configured to communicate with the specified resource. GetConnectionStringAsync(DistributedApplication, string, CancellationToken)extensionats ignoredValueTask<string?> Gets the connection string for the specified resource.
GetEndpoint(DistributedApplication, string, string?)extensionats exportUri Gets the endpoint for the specified resource.
GetEndpointForNetwork(DistributedApplication, string, NetworkIdentifier?, string?)extensionats ignoredUri Gets the endpoint for the specified resource.