5 types derived from DistributedApplicationException
Aspire.Hosting (2)
Exceptions.cs (1)
6internal class FailedToApplyEnvironmentException : DistributedApplicationException
MissingParameterValueException.cs (1)
17public class MissingParameterValueException : DistributedApplicationException
Aspire.Hosting.Azure (3)
Exceptions.cs (3)
6internal sealed class AzureCliNotOnPathException : DistributedApplicationException 13internal sealed class MissingConfigurationException : DistributedApplicationException 20internal sealed class FailedToApplyEnvironmentException : DistributedApplicationException
118 instantiations of DistributedApplicationException
Aspire.Hosting (67)
ApplicationModel\ConnectionStringReference.cs (1)
41internal void ThrowConnectionStringUnavailableException() => throw new DistributedApplicationException($"The connection string for the resource '{Resource.Name}' is not available.");
ApplicationModel\ResourceNotificationService.cs (8)
227throw new DistributedApplicationException($"Stopped waiting for resource '{resourceName}' to become healthy because it failed to start."); 251_ => throw new DistributedApplicationException($"Unexpected wait behavior: {waitBehavior}") 285throw new DistributedApplicationException($"Dependency resource '{displayName}' failed to start."); 297throw new DistributedApplicationException( 342throw new DistributedApplicationException($"Dependency resource '{displayName}' failed to start."); 354throw new DistributedApplicationException( 372_ => throw new DistributedApplicationException($"Unexpected wait behavior: {waitBehavior}") 416_ => throw new DistributedApplicationException($"Unexpected wait type: {waitAnnotation.WaitType}")
Dashboard\DashboardEventHandlers.cs (3)
150throw new DistributedApplicationException($"Failed to parse AppHost runtime config: {runtimeConfigPath}"); 242throw new DistributedApplicationException($"Failed to parse dashboard runtime config: {originalRuntimeConfig}"); 282throw new DistributedApplicationException("Dashboard path empty or file does not exist.");
Dcp\DcpDependencyCheck.cs (5)
86throw new DistributedApplicationException(string.Format( 114throw new DistributedApplicationException(string.Format( 163throw new DistributedApplicationException(string.Format( 250throw new DistributedApplicationException($"Container runtime '{containerRuntime}' could not be found. See https://aka.ms/dotnet/aspire/containers for more details on supported container runtimes."); 269throw new DistributedApplicationException(message);
Dcp\DcpExecutor.cs (3)
1688throw new DistributedApplicationException($"Couldn't find required {nameof(DcpInstancesAnnotation)} annotation on resource {resource.Name}."); 1699throw new DistributedApplicationException($"Couldn't find required instance ID for index {instanceIndex} on resource {resource.Name}."); 2178throw new DistributedApplicationException($"Failed to delete '{resourceName}' successfully before restart.");
Dcp\HostDashboardEndpointProvider.cs (1)
25throw new DistributedApplicationException("Error getting the resource service URL.", ex);
Devcontainers\Codespaces\CodespacesOptions.cs (1)
51return configuration.GetValue<string>(key) ?? throw new DistributedApplicationException($"Codespaces was detected but {key} environment missing.");
Devcontainers\DevcontainerSettingsWriter.cs (2)
114throw new DistributedApplicationException($"Failed to acquire semaphore for settings file: {settingsPath}"); 239throw new DistributedApplicationException("Codespaces, Devcontainer, or SSH Remote not detected.");
DistributedApplicationBuilder.cs (4)
136_ => throw new DistributedApplicationException("Invalid operation specified. Valid operations are 'publish' or 'run'.") 143_ => throw new DistributedApplicationException("Invalid operation specified. Valid operations are 'publish' or 'run'.") 689throw new DistributedApplicationException($"Multiple resources with the name '{duplicateResourceName}'. Resource names are case-insensitive."); 712throw new DistributedApplicationException($"Cannot add resource of type '{resource.GetType()}' with name '{resource.Name}' because resource of type '{existingResource.GetType()}' with that name already exists. Resource names are case-insensitive.");
ProjectResourceBuilderExtensions.cs (2)
384throw new DistributedApplicationException(message); 396throw new DistributedApplicationException($"File-based apps are only supported on .NET 10 or later. The version active in '{Path.GetDirectoryName(projectPath)}' {versionValue}.");
Publishing\ContainerRuntimeBase.cs (2)
116throw new DistributedApplicationException($"{Name} login failed with exit code {processResult.ExitCode}."); 155throw new DistributedApplicationException(string.Format(System.Globalization.CultureInfo.InvariantCulture, exceptionMessageTemplate, processResult.ExitCode));
Publishing\DockerContainerRuntime.cs (1)
159throw new DistributedApplicationException($"Docker build failed with exit code {exitCode}.");
Publishing\ManifestPublisher.cs (2)
33throw new DistributedApplicationException( 66var manifestPath = _options.Value.OutputPath ?? throw new DistributedApplicationException("The '--output-path [path]' option was not specified even though '--publisher manifest' argument was used.");
Publishing\ManifestPublishingContext.cs (3)
69var manifestDirectory = Path.GetDirectoryName(fullyQualifiedManifestPath) ?? throw new DistributedApplicationException("Could not get directory name of output path"); 177throw new DistributedApplicationException("Project metadata not found."); 327throw new DistributedApplicationException("Could not get container image name.");
Publishing\ManifestPublishingExtensions.cs (1)
38throw new DistributedApplicationException(
Publishing\PipelineExecutor.cs (1)
87throw new DistributedApplicationException($"Pipeline execution failed: {ex.Message}", ex);
Publishing\PodmanContainerRuntime.cs (1)
92throw new DistributedApplicationException($"Podman build failed with exit code {exitCode}.");
Publishing\ResourceContainerImageBuilder.cs (2)
232throw new DistributedApplicationException($"Failed to build container image."); 250throw new DistributedApplicationException($"The resource '{projectMetadata}' does not have a project metadata annotation.");
ResourceBuilderExtensions.cs (20)
188throw new DistributedApplicationException($"The URL parameter '{externalService.Resource.UrlParameter.Name}' for the external service '{externalService.Resource.Name}' is invalid: {message}"); 670throw new DistributedApplicationException($"The URL parameter '{externalService.Resource.UrlParameter.Name}' for the external service '{externalService.Resource.Name}' is invalid: {message}"); 847throw new DistributedApplicationException($"Endpoint with name '{annotation.Name}' already exists. Endpoint name may not have been explicitly specified and was derived automatically from scheme argument (e.g. 'http', 'https', or 'tcp'). Multiple calls to WithEndpoint (and related methods) may result in a conflict if name argument is not specified. Each endpoint must have a unique name. For more information on networking in Aspire see: https://aka.ms/dotnet/aspire/networking"); 1447throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for itself."); 1452throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for its parent '{dependency.Resource.Name}'."); 1551throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for itself."); 1556throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for its parent '{dependency.Resource.Name}'."); 1647throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for itself."); 1652throw new DistributedApplicationException($"The '{builder.Resource.Name}' resource cannot wait for its parent '{dependency.Resource.Name}'."); 1703throw new DistributedApplicationException($"Resource '{builder.Resource.Name}' already has a health check with key '{key}'."); 1785?? throw new DistributedApplicationException($"Could not create HTTP health check for resource '{builder.Resource.Name}' as the endpoint selector returned null."); 1789throw new DistributedApplicationException($"Could not create HTTP health check for resource '{builder.Resource.Name}' as the endpoint with name '{endpoint.EndpointName}' and scheme '{endpoint.Scheme}' is not an HTTP endpoint."); 1801throw new DistributedApplicationException($"The endpoint '{endpointName}' does not exist on the resource '{builder.Resource.Name}'."); 1823throw new DistributedApplicationException($"The URI for the health check is not set. Ensure that the resource has been allocated before the health check is executed."); 2137?? throw new DistributedApplicationException($"Could not create HTTP command for resource '{builder.Resource.Name}' as the endpoint selector returned null."); 2141throw new DistributedApplicationException($"Could not create HTTP command for resource '{builder.Resource.Name}' as the endpoint with name '{endpoint.EndpointName}' and scheme '{endpoint.Scheme}' is not an HTTP endpoint."); 2428throw new DistributedApplicationException($"Could not create {errorDisplayNoun} for resource '{builder.Resource.Name}' as the endpoint with name '{matchingEndpoint.EndpointName}' and scheme '{matchingEndpoint.Scheme}' is not an HTTP endpoint."); 2436throw new DistributedApplicationException($"Could not create {errorDisplayNoun} for resource '{builder.Resource.Name}' as no endpoint was found matching one of the specified names: {endpointNamesString}"); 2456throw new DistributedApplicationException($"Could not create HTTP command for resource '{builder.Resource.Name}' as it has no HTTP endpoints."); 2883var endpoint = endpointSelector() ?? throw new DistributedApplicationException($"Could not create HTTP probe for resource '{builder.Resource.Name}' as the endpoint selector returned null.");
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (4)
21throw new DistributedApplicationException(LaunchProfileStrings.ProjectDoesNotContainMetadataExceptionMessage); 63throw new DistributedApplicationException(message); 80throw new DistributedApplicationException(message); 122throw new DistributedApplicationException(message, ex);
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
100throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{builder.Resource.Name}' resource but the connection string was null.");
Aspire.Hosting.Azure.Functions (4)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (4)
21throw new DistributedApplicationException(LaunchProfileStrings.ProjectDoesNotContainMetadataExceptionMessage); 63throw new DistributedApplicationException(message); 80throw new DistributedApplicationException(message); 122throw new DistributedApplicationException(message, ex);
Aspire.Hosting.Azure.Kusto (3)
AzureKustoBuilderExtensions.cs (3)
120throw new DistributedApplicationException($"ConnectionStringAvailableEvent published for resource '{db.Name}', but the connection string was null."); 231throw new DistributedApplicationException($"ConnectionStringAvailableEvent published for resource '{resource.Name}', but the connection string was null."); 247throw new DistributedApplicationException($"Connection string for Kusto resource '{server.Name}' is not set.");
Aspire.Hosting.Azure.Storage (2)
AzureStorageExtensions.cs (2)
181var blobConnectionString = await builder.Resource.GetBlobConnectionString().GetValueAsync(ct).ConfigureAwait(false) ?? throw new DistributedApplicationException($"{nameof(ConnectionStringAvailableEvent)} was published for the '{builder.Resource.Name}' resource but the connection string was null."); 184var queueConnectionString = await builder.Resource.GetQueueConnectionString().GetValueAsync(ct).ConfigureAwait(false) ?? throw new DistributedApplicationException($"{nameof(ConnectionStringAvailableEvent)} was published for the '{builder.Resource.Name}' resource but the connection string was null.");
Aspire.Hosting.DevTunnels (13)
DevTunnelCliClient.cs (10)
49throw new DistributedApplicationException($"Failed to get devtunnel CLI version. Output: '{output}'. Error: '{error}'"); 124throw new DistributedApplicationException($"Failed to create dev tunnel '{tunnelId}' after {attempts} attempts. Exit code {exitCode}: {error}"); 134return tunnel ?? throw new DistributedApplicationException($"Failed to get dev tunnel '{tunnelId}'. Exit code {exitCode}: {error}"); 143return ports ?? throw new DistributedApplicationException($"Failed to get port list for dev tunnel '{tunnelId}'. Exit code {exitCode}: {error}"); 212throw new DistributedApplicationException($"Failed to create port '{portNumber}' for tunnel '{tunnelId}' after {attempts} attempts. Exit code {exitCode}: {error}"); 221return result ?? throw new DistributedApplicationException($"Failed to delete port '{portNumber}' on dev tunnel '{tunnelId}'. Exit code {exitCode}: {error}"); 230return access ?? throw new DistributedApplicationException($"Failed to get access details for '{tunnelId}'{(portNumber.HasValue ? $" port {portNumber}" : "")}. Exit code {exitCode}: {error}"); 239return login ?? throw new DistributedApplicationException($"Failed to get user login status. Exit code {exitCode}: {error}"); 258throw new DistributedApplicationException($"Failed to perform user login. Process finished with exit code: {exitCode}"); 310throw new DistributedApplicationException($"Failed to parse JSON output into type '{typeof(T).Name}':\n{output}", ex);
DevTunnelResourceBuilderExtensions.cs (1)
140var exception = new DistributedApplicationException($"Error trying to create the dev tunnel resource '{tunnelResource.TunnelId}' this port belongs to: {ex.Message}", ex);
RequiredCommandValidator.cs (2)
63throw new DistributedApplicationException(_notificationMessage ?? $"Required command '{command}' was not found on PATH, at the specified location, or failed validation."); 116throw new DistributedApplicationException(message);
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
118throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{garnet.Name}' resource but the connection string was null.");
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
48throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{kafka.Name}' resource but the connection string was null.");
Aspire.Hosting.Maui (3)
MauiMacCatalystExtensions.cs (1)
89throw new DistributedApplicationException(
MauiPlatformHelper.cs (1)
90throw new DistributedApplicationException(
MauiWindowsExtensions.cs (1)
89throw new DistributedApplicationException(
Aspire.Hosting.MongoDB (2)
MongoDBBuilderExtensions.cs (2)
68throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{mongoDBContainer.Name}' resource but the connection string was null."); 119throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{mongoDBDatabase.Name}' resource but the connection string was null.");
Aspire.Hosting.MySql (3)
MySqlBuilderExtensions.cs (3)
49throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{resource.Name}' resource but the connection string was null."); 57throw new DistributedApplicationException($"ResourceReadyEvent was published for the '{resource.Name}' resource but the connection string was null."); 128throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{name}' resource but the connection string was null.");
Aspire.Hosting.Nats (1)
NatsBuilderExtensions.cs (1)
63?? throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{nats.Name}' resource but the connection string was null.");
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
49throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{oracleDatabaseServer.Name}' resource but the connection string was null.");
Aspire.Hosting.PostgreSQL (3)
PostgresBuilderExtensions.cs (3)
62throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{postgresServer.Name}' resource but the connection string was null."); 70throw new DistributedApplicationException($"ResourceReadyEvent was published for the '{postgresServer.Name}' resource but the connection string was null."); 160throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{name}' resource but the connection string was null.");
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
55?? throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{qdrant.Name}' resource but the connection string was null.");
Aspire.Hosting.RabbitMQ (2)
RabbitMQBuilderExtensions.cs (2)
51throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{rabbitMq.Name}' resource but the connection string was null."); 211throw new DistributedApplicationException($"Cannot configure the RabbitMQ resource '{builder.Resource.Name}' to enable the management plugin as it uses an unrecognized container image registry, name, or tag.");
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
80throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{redis.Name}' resource but the connection string was null.");
Aspire.Hosting.SqlServer (3)
SqlServerBuilderExtensions.cs (3)
67throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{sqlServer.Name}' resource but the connection string was null."); 74throw new DistributedApplicationException($"ResourceReadyEvent was published for the '{sqlServer.Name}' resource but the connection string was null."); 138throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{name}' resource but the connection string was null.");
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
367throw new DistributedApplicationException(message, ex);
Aspire.Hosting.Tests (3)
DistributedApplicationTests.cs (3)
58throw new DistributedApplicationException(exceptionMessage); 103throw new DistributedApplicationException(exceptionMessage); 407throw new DistributedApplicationException(exceptionMessage);
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
131throw new DistributedApplicationException($"ConnectionStringAvailableEvent was published for the '{valkey.Name}' resource but the connection string was null.");
Aspire.Hosting.Yarp (1)
YarpJsonConfigGeneratorBuilder.cs (1)
70throw new DistributedApplicationException($"Error when reading the YARP config file '{_configFilePath}'", ex);
98 references to DistributedApplicationException
Aspire.Hosting (20)
ApplicationModel\ResourceNotificationService.cs (2)
215/// will throw a <see cref="DistributedApplicationException"/> if the resource enters an 394/// <exception cref="DistributedApplicationException"></exception>
Backchannel\AppHostRpcTarget.cs (1)
131catch (DistributedApplicationException ex)
Dcp\DcpDependencyCheck.cs (1)
111(ex is not DistributedApplicationException
DistributedApplicationException.cs (3)
12/// Initializes a new instance of the <see cref="DistributedApplicationException"/> class. 18/// Initializes a new instance of the <see cref="DistributedApplicationException"/> class, 26/// Initializes a new instance of the <see cref="DistributedApplicationException"/> class,
IDistributedApplicationBuilder.cs (1)
145/// <exception cref="DistributedApplicationException">Thrown when a resource with the same name already exists.</exception>
ParameterResourceBuilderExtensions.cs (2)
23/// <exception cref="DistributedApplicationException"></exception> 240/// <exception cref="DistributedApplicationException"></exception>
Publishing\ManifestPublishingContext.cs (2)
59/// <exception cref="DistributedApplicationException">Throws when could not get the directory directory name from the output path.</exception> 312/// <exception cref="DistributedApplicationException">Thrown if the container resource does not contain a <see cref="ContainerImageAnnotation"/>.</exception>
ResourceBuilderExtensions.cs (8)
464/// <exception cref="DistributedApplicationException">Throws an exception if the connection string resolves to null. It can be null if the resource has no connection string, and if the configuration has no connection string for the source resource.</exception> 825/// <exception cref="DistributedApplicationException">Throws an exception if an endpoint with the same name already exists on the specified resource.</exception> 880/// <exception cref="DistributedApplicationException">Throws an exception if an endpoint with the same name already exists on the specified resource.</exception> 898/// <exception cref="DistributedApplicationException">Throws an exception if an endpoint with the same name already exists on the specified resource.</exception> 918/// <exception cref="DistributedApplicationException">Throws an exception if an endpoint with the same name already exists on the specified resource.</exception> 1423/// will throw a <see cref="DistributedApplicationException"/> if the resource enters an unavailable state.</para> 1527/// will throw a <see cref="DistributedApplicationException"/> if the resource enters an unavailable state.</para> 2080/// <exception cref="DistributedApplicationException"></exception>
Aspire.Hosting.DevTunnels (2)
DevTunnelCliInstallationManager.cs (1)
58/// <throws cref="DistributedApplicationException">Thrown if the devtunnel CLI is not found.</throws>
DevTunnelResourceBuilderExtensions.cs (1)
140var exception = new DistributedApplicationException($"Error trying to create the dev tunnel resource '{tunnelResource.TunnelId}' this port belongs to: {ex.Message}", ex);
Aspire.Hosting.Maui.Tests (8)
MauiMacCatalystExtensionsTests.cs (4)
96var exception = Assert.Throws<DistributedApplicationException>(() => maui.AddMacCatalystDevice("device1")); 236var exception = await Assert.ThrowsAsync<DistributedApplicationException>(async () =>
MauiWindowsExtensionsTests.cs (4)
103var exception = Assert.Throws<DistributedApplicationException>(() => maui.AddWindowsDevice("device1")); 223var exception = await Assert.ThrowsAsync<DistributedApplicationException>(async () =>
Aspire.Hosting.MongoDB.Tests (2)
AddMongoDBTests.cs (2)
240Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 252Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db"));
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
299Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 311Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db"));
Aspire.Hosting.Oracle.Tests (2)
AddOracleTests.cs (2)
269Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 281Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db"));
Aspire.Hosting.PostgreSQL.Tests (2)
AddPostgresTests.cs (2)
576Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 588Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db"));
Aspire.Hosting.RabbitMQ (2)
RabbitMQBuilderExtensions.cs (2)
124/// Calling this method on a resource configured with an unrecognized image registry, name, or tag will result in a <see cref="DistributedApplicationException"/> being thrown. 129/// <exception cref="DistributedApplicationException">Thrown when the current container image and tag do not match the defaults for <see cref="RabbitMQServerResource"/>.</exception>
Aspire.Hosting.RabbitMQ.Tests (3)
AddRabbitMQTests.cs (3)
165Assert.Throws<DistributedApplicationException>(rabbitmq.WithManagementPlugin); 178Assert.Throws<DistributedApplicationException>(rabbitmq.WithManagementPlugin); 192Assert.Throws<DistributedApplicationException>(rabbitmq.WithManagementPlugin);
Aspire.Hosting.SqlServer.Tests (2)
AddSqlServerTests.cs (2)
202Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db")); 214Assert.Throws<DistributedApplicationException>(() => db.AddDatabase("db"));
Aspire.Hosting.Tests (53)
Dcp\DcpExecutorTests.cs (2)
1155var ex = await Assert.ThrowsAsync<DistributedApplicationException>(async () => await appExecutor.StartResourceAsync(resourceReference, CancellationToken.None));
DistributedApplicationBuilderTests.cs (8)
130var ex = Assert.Throws<DistributedApplicationException>(() => appBuilder.AddResource(new ContainerResource("Test"))); 141var ex = Assert.Throws<DistributedApplicationException>(() => appBuilder.AddResource(new ContainerResource("TEST"))); 153var ex = Assert.Throws<DistributedApplicationException>(appBuilder.Build); 165var ex = Assert.Throws<DistributedApplicationException>(appBuilder.Build);
DistributedApplicationTests.cs (5)
63var ex = await Assert.ThrowsAsync<DistributedApplicationException>(async () => 108var ex = await Assert.ThrowsAsync<DistributedApplicationException>(async () => 413Assert.IsType<DistributedApplicationException>(ex.InnerExceptions.First());
ExpressionResolverTests.cs (1)
41data.Add(new ExpressionResolverTestData(false, new ConnectionStringReference(new TestExpressionResolverResource("Empty"), false)), typeof(DistributedApplicationException), null);
ExternalServiceTests.cs (1)
188await Assert.ThrowsAsync<DistributedApplicationException>(async () =>
HealthCheckTests.cs (6)
25var ex = Assert.Throws<DistributedApplicationException>(() => 45var ex = Assert.Throws<DistributedApplicationException>(() => 62var ex = Assert.Throws<DistributedApplicationException>(() =>
ProjectResourceTests.cs (6)
33var ex = Assert.Throws<DistributedApplicationException>(() => 289var ex = Assert.Throws<DistributedApplicationException>(() => appBuilder.AddProject<TestProject>("projectName")); 299var ex = Assert.Throws<DistributedApplicationException>(() => appBuilder.AddProject<Projects.ServiceA>("projectName", launchProfileName: "not-exist"));
WaitForTests.cs (13)
46var waitForEx = Assert.Throws<DistributedApplicationException>(() => 53var waitForCompletionEx = Assert.Throws<DistributedApplicationException>(() => 68var waitForEx = Assert.Throws<DistributedApplicationException>(() => 75var waitForCompletionEx = Assert.Throws<DistributedApplicationException>(() => 243var ex = await Assert.ThrowsAsync<DistributedApplicationException>(async () => { 280[InlineData(WaitBehavior.StopOnResourceUnavailable, typeof(DistributedApplicationException), "Stopped waiting for resource 'redis' to become healthy because it failed to start.")] 839var waitForEx = Assert.Throws<DistributedApplicationException>(() =>
WithEndpointTests.cs (6)
158var ex = Assert.Throws<DistributedApplicationException>(() => 173var ex = Assert.Throws<DistributedApplicationException>(() => 188var ex = Assert.Throws<DistributedApplicationException>(() =>
WithHttpCommandTests.cs (4)
44var ex = Assert.Throws<DistributedApplicationException>(() => 66var ex = Assert.Throws<DistributedApplicationException>(() =>
WithReferenceTests.cs (1)
217await Assert.ThrowsAsync<DistributedApplicationException>(async () =>