1 instantiation of DistributedApplication
Aspire.Hosting (1)
671 references to DistributedApplication
Aspire.Hosting (44)
Aspire.Hosting.Analyzers.Tests (1)
Aspire.Hosting.Azure.Tests (39)
Aspire.Hosting.Containers.Tests (24)
Aspire.Hosting.Dapr.Tests (3)
Aspire.Hosting.Elasticsearch.Tests (10)
Aspire.Hosting.Garnet.Tests (10)
Aspire.Hosting.Kafka.Tests (9)
Aspire.Hosting.Keycloak.Tests (2)
Aspire.Hosting.Milvus.Tests (16)
Aspire.Hosting.MongoDB.Tests (15)
Aspire.Hosting.MySql.Tests (20)
Aspire.Hosting.Nats.Tests (14)
Aspire.Hosting.NodeJs.Tests (7)
Aspire.Hosting.Oracle.Tests (15)
Aspire.Hosting.PostgreSQL.Tests (24)
Aspire.Hosting.Python.Tests (4)
Aspire.Hosting.Qdrant.Tests (17)
Aspire.Hosting.RabbitMQ.Tests (11)
Aspire.Hosting.Redis.Tests (31)
Aspire.Hosting.SqlServer.Tests (19)
Aspire.Hosting.Testing (21)
DistributedApplicationHostingTestingExtensions.cs (7)
12/// Extensions for working with <see cref="DistributedApplication"/> in test code.
23public static HttpClient CreateHttpClient(this DistributedApplication app, string resourceName, string? endpointName = default)
41public static ValueTask<string?> GetConnectionStringAsync(this DistributedApplication app, string resourceName, CancellationToken cancellationToken = default)
61public static Uri GetEndpoint(this DistributedApplication app, string resourceName, string? endpointName = default) => new(GetEndpointUriStringCore(app, resourceName, endpointName));
63static IResource GetResource(DistributedApplication app, string resourceName)
79static string GetEndpointUriStringCore(DistributedApplication app, string resourceName, string? endpointName = default)
105static void ThrowIfNotStarted(DistributedApplication app)
Aspire.Hosting.Testing.Tests (21)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (10)
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>
63public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, string? resourceName = null, CancellationToken cancellationToken = default)
82/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
87public static async Task WaitForAllTextAsync(this DistributedApplication app, IEnumerable<string> logTexts, string? resourceName = null, CancellationToken cancellationToken = default)
112private static async Task WatchNotifications(DistributedApplication app, string? resourceName, Predicate<string> predicate, TaskCompletionSource tcs, CancellationTokenSource cancellationTokenSource)
Aspire.Hosting.Tests (213)
Utils\LoggerNotificationExtensions.cs (10)
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>
63public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, string? resourceName = null, CancellationToken cancellationToken = default)
82/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
87public static async Task WaitForAllTextAsync(this DistributedApplication app, IEnumerable<string> logTexts, string? resourceName = null, CancellationToken cancellationToken = default)
112private static async Task WatchNotifications(DistributedApplication app, string? resourceName, Predicate<string> predicate, TaskCompletionSource tcs, CancellationTokenSource cancellationTokenSource)
Aspire.Hosting.Valkey.Tests (10)
Aspire.Playground.Tests (24)
Infrastructure\DistributedApplicationExtensions.cs (8)
85public 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)
111public static (IReadOnlyList<FakeLogRecord> AppHostLogs, IReadOnlyList<FakeLogRecord> ResourceLogs) GetLogs(this DistributedApplication app)
129public 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 (10)
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>
63public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, string? resourceName = null, CancellationToken cancellationToken = default)
82/// <param name="app">The <see cref="DistributedApplication" /> instance to watch.</param>
87public static async Task WaitForAllTextAsync(this DistributedApplication app, IEnumerable<string> logTexts, string? resourceName = null, CancellationToken cancellationToken = default)
112private static async Task WatchNotifications(DistributedApplication app, string? resourceName, Predicate<string> predicate, TaskCompletionSource tcs, CancellationTokenSource cancellationTokenSource)
AzureContainerApps.AppHost (1)
AzureFunctionsEndToEnd.AppHost (1)
AzureSearch.AppHost (1)
AzureStorageEndToEnd.AppHost (1)
BicepSample.AppHost (1)
BrowserTelemetry.AppHost (1)
CdkSample.AppHost (1)
CosmosEndToEnd.AppHost (1)
CustomResources.AppHost (1)
Dapr.AppHost (2)
DatabaseMigration.AppHost (1)
Elasticsearch.AppHost (1)
EventHubs.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)
PostgresEndToEnd.AppHost (1)
ProxylessEndToEnd.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)