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?)extensionHttpClient Creates an
Http.HttpClient configured to communicate with the specified resource. GetConnectionStringAsync(DistributedApplication, string, CancellationToken)extensionValueTask<string?> Gets the connection string for the specified resource.
GetEndpoint(DistributedApplication, string, string?)extensionUri Gets the endpoint for the specified resource.
GetEndpointForNetwork(DistributedApplication, string, NetworkIdentifier?, string?)extensionUri Gets the endpoint for the specified resource.