1 type derived from DistributedApplication
Aspire.Hosting.Testing (1)
1 instantiation of DistributedApplication
Aspire.Hosting (1)
1408 references to DistributedApplication
AppHost1 (1)
Aspire.Cli.Tests (1)
Aspire.Hosting (45)
Aspire.Hosting.Analyzers.Tests (1)
Aspire.Hosting.Azure.Kusto.Tests (5)
Aspire.Hosting.Azure.Tests (204)
Aspire.Hosting.Containers.Tests (39)
Aspire.Hosting.Docker.Tests (27)
Aspire.Hosting.Garnet.Tests (15)
Aspire.Hosting.GitHub.Models.Tests (1)
Aspire.Hosting.JavaScript.Tests (53)
Aspire.Hosting.Kafka.Tests (9)
Aspire.Hosting.Keycloak.Tests (4)
Aspire.Hosting.Kubernetes.Tests (10)
Aspire.Hosting.Maui.Tests (16)
Aspire.Hosting.Milvus.Tests (11)
Aspire.Hosting.MongoDB.Tests (16)
Aspire.Hosting.MySql.Tests (27)
Aspire.Hosting.Nats.Tests (14)
Aspire.Hosting.OpenAI.Tests (2)
Aspire.Hosting.Oracle.Tests (16)
Aspire.Hosting.PostgreSQL.Tests (34)
Aspire.Hosting.Python.Tests (60)
Aspire.Hosting.Qdrant.Tests (16)
Aspire.Hosting.RabbitMQ.Tests (8)
Aspire.Hosting.Redis.Tests (42)
Aspire.Hosting.Seq.Tests (17)
Aspire.Hosting.SqlServer.Tests (17)
Aspire.Hosting.Testing (33)
DistributedApplicationHostingTestingExtensions.cs (8)
11/// Extensions for working with <see cref="DistributedApplication"/> in test code.
22public static HttpClient CreateHttpClient(this DistributedApplication app, string resourceName, string? endpointName = default)
43public static ValueTask<string?> GetConnectionStringAsync(this DistributedApplication app, string resourceName, CancellationToken cancellationToken = default)
66public static Uri GetEndpoint(this DistributedApplication app, string resourceName, string? endpointName = default)
84public static Uri GetEndpointForNetwork(this DistributedApplication app, string resourceName, NetworkIdentifier? networkIdentifier, string? endpointName = default)
92static IResource GetResource(DistributedApplication app, string resourceName)
108static string GetEndpointUriStringCore(DistributedApplication app, string resourceName, string? endpointName = default, NetworkIdentifier? networkIdentifier = default)
134static void ThrowIfNotStarted(DistributedApplication app)
Aspire.Hosting.Testing.Tests (40)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (12)
18/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
23public static Task WaitForTextAsync(this DistributedApplication app, string logText, string? resourceName = null, CancellationToken cancellationToken = default)
31public static async Task WaitForHealthyAsync<T>(this DistributedApplication app, IResourceBuilder<T> resource, CancellationToken cancellationToken = default) where T : IResource
42/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
47public static Task WaitForTextAsync(this DistributedApplication app, IEnumerable<string> logTexts, string? resourceName = null, CancellationToken cancellationToken = default)
58/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
62public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, CancellationToken cancellationToken = default)
68/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
73public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, string? resourceName = null, CancellationToken cancellationToken = default)
92/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
97public static async Task WaitForAllTextAsync(this DistributedApplication app, IEnumerable<string> logTexts, string? resourceName = null, CancellationToken cancellationToken = default)
122private static async Task WatchNotifications(DistributedApplication app, string? resourceName, Predicate<string> predicate, TaskCompletionSource tcs, CancellationTokenSource cancellationTokenSource)
Aspire.Hosting.Tests (515)
Utils\LoggerNotificationExtensions.cs (12)
18/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
23public static Task WaitForTextAsync(this DistributedApplication app, string logText, string? resourceName = null, CancellationToken cancellationToken = default)
31public static async Task WaitForHealthyAsync<T>(this DistributedApplication app, IResourceBuilder<T> resource, CancellationToken cancellationToken = default) where T : IResource
42/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
47public static Task WaitForTextAsync(this DistributedApplication app, IEnumerable<string> logTexts, string? resourceName = null, CancellationToken cancellationToken = default)
58/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
62public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, CancellationToken cancellationToken = default)
68/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
73public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, string? resourceName = null, CancellationToken cancellationToken = default)
92/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
97public static async Task WaitForAllTextAsync(this DistributedApplication app, IEnumerable<string> logTexts, string? resourceName = null, CancellationToken cancellationToken = default)
122private static async Task WatchNotifications(DistributedApplication app, string? resourceName, Predicate<string> predicate, TaskCompletionSource tcs, CancellationTokenSource cancellationTokenSource)
Aspire.Hosting.Valkey.Tests (15)
Aspire.Hosting.Yarp.Tests (7)
Aspire.Playground.Tests (26)
Infrastructure\DistributedApplicationExtensions.cs (8)
86public static Task WaitForResource(this DistributedApplication app, string resourceName, string? targetState = null, CancellationToken cancellationToken = default)
99public static Task WaitForResources(this DistributedApplication app, IEnumerable<string>? targetStates = null, CancellationToken cancellationToken = default)
113public static (IReadOnlyList<FakeLogRecord> AppHostLogs, IReadOnlyList<FakeLogRecord> ResourceLogs) GetLogs(this DistributedApplication app)
131public static void EnsureNoErrorsLogged(this DistributedApplication app)
169public static HttpClient CreateHttpClient(this DistributedApplication app, string resourceName, bool useHttpClientFactory)
175public static HttpClient CreateHttpClient(this DistributedApplication app, string resourceName, string? endpointName, bool useHttpClientFactory)
194public static HttpClient CreateHttpClient(this DistributedApplication app, string resourceName, string? endpointName, Action<IHttpClientBuilder> configure)
211public static async Task<bool> TryApplyEfMigrationsAsync(this DistributedApplication app, ProjectResource project)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (12)
18/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
23public static Task WaitForTextAsync(this DistributedApplication app, string logText, string? resourceName = null, CancellationToken cancellationToken = default)
31public static async Task WaitForHealthyAsync<T>(this DistributedApplication app, IResourceBuilder<T> resource, CancellationToken cancellationToken = default) where T : IResource
42/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
47public static Task WaitForTextAsync(this DistributedApplication app, IEnumerable<string> logTexts, string? resourceName = null, CancellationToken cancellationToken = default)
58/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
62public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, CancellationToken cancellationToken = default)
68/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
73public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, string? resourceName = null, CancellationToken cancellationToken = default)
92/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
97public static async Task WaitForAllTextAsync(this DistributedApplication app, IEnumerable<string> logTexts, string? resourceName = null, CancellationToken cancellationToken = default)
122private static async Task WatchNotifications(DistributedApplication app, string? resourceName, Predicate<string> predicate, TaskCompletionSource tcs, CancellationTokenSource cancellationTokenSource)
AspireJavaScript.AppHost (1)
AspireWithMaui.AppHost (1)
AspireWithNode.AppHost (1)
AzureAIFoundryEndToEnd.AppHost (1)
AzureAppConfiguration.AppHost (1)
AzureAppService.AppHost (1)
AzureContainerApps.AppHost (1)
AzureFunctionsEndToEnd.AppHost (1)
AzureKusto.AppHost (2)
AzureOpenAIEndToEnd.AppHost (1)
AzureSearch.AppHost (1)
AzureStorageEndToEnd.AppHost (1)
BicepSample.AppHost (1)
BrowserTelemetry.AppHost (1)
CdkSample.AppHost (1)
CosmosEndToEnd.AppHost (1)
CustomResources.AppHost (1)
DatabaseMigration.AppHost (1)
Deployers.AppHost (1)
DevTunnels.AppHost (1)
EventHubs.AppHost (1)
ExternalServices.AppHost (1)
GitHubModelsEndToEnd.AppHost (1)
HealthChecksSandbox.AppHost (1)
KafkaBasic.AppHost (1)
Keycloak.AppHost (1)
MilvusPlayground.AppHost (1)
Mongo.AppHost (1)
MySqlDb.AppHost (1)
Nats.AppHost (1)
OpenAIEndToEnd.AppHost (1)
OracleEndToEnd.AppHost (1)
Orleans.AppHost (2)
ParameterEndToEnd.AppHost (1)
Pipelines.AppHost (1)
PostgresEndToEnd.AppHost (1)
ProxylessEndToEnd.AppHost (1)
Publishers.AppHost (1)
Python.AppHost (1)
Qdrant.AppHost (1)
Redis.AppHost (1)
Seq.AppHost (1)
ServiceBus.AppHost (1)
SignalR.AppHost (1)
SqlServerEndToEnd.AppHost (1)
Stress.AppHost (1)
TestingAppHost1.AppHost (2)
TestProject.AppHost (5)
TestShop.AppHost (1)
WaitForSandbox.AppHost (1)
WebPubSub.AppHost (1)
WithDockerfile.AppHost (1)
Yarp.AppHost (2)