2 implementations of Exception
Aspire.Hosting (1)
ApplicationModel\ExecutionConfigurationResult.cs (1)
30public Exception? Exception { get; init; }
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFMigrationPipelineTests.cs (1)
832public Exception? Exception { get; init; }
19 references to Exception
Aspire.Hosting (9)
ApplicationModel\IExecutionConfigurationBuilder.cs (1)
26/// <returns>The resource configuration result. Any exceptions that occurred while processing are available via the <see cref="IExecutionConfigurationResult.Exception"/> property.</returns>
Dcp\ContainerCreator.cs (2)
320if (configuration.Exception is not null) 322throw new FailedToApplyEnvironmentException($"Failed to apply configuration to container {cr.ModelResource.Name}", configuration.Exception);
Dcp\ExecutableCreator.cs (2)
61if (configuration.Configuration.Exception is not null) 65configuration.Configuration.Exception);
Publishing\ManifestPublishingContext.cs (4)
540if (executionConfiguration.Exception is not null) 542ExceptionDispatchInfo.Throw(executionConfiguration.Exception); 578if (executionConfiguration.Exception is not null) 580ExceptionDispatchInfo.Throw(executionConfiguration.Exception);
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
433if (executionConfiguration.Exception is not null) 443Message = executionConfiguration.Exception.Message
Aspire.Hosting.Tests (4)
ExecutionConfigurationGathererTests.cs (4)
227Assert.NotNull(result.Exception); 228var aggregate = Assert.IsType<AggregateException>(result.Exception); 262Assert.NotNull(result.Exception); 263var aggregate = Assert.IsType<AggregateException>(result.Exception);
Aspire.Hosting.TestUtilities (4)
Utils\ArgumentEvaluator.cs (2)
24if (executionConfiguration.Exception is not null) 26ExceptionDispatchInfo.Throw(executionConfiguration.Exception);
Utils\EnvironmentVariableEvaluator.cs (2)
25if (executionConfiguration.Exception is not null) 27ExceptionDispatchInfo.Throw(executionConfiguration.Exception);