2 implementations of Exception
Aspire.Hosting (1)
ApplicationModel\ExecutionConfigurationResult.cs (1)
30public Exception? Exception { get; init; }
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFMigrationPipelineTests.cs (1)
920public Exception? Exception { get; init; }
24 references to Exception
Aspire.Hosting (10)
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)
228if (configuration.Exception is not null) 230throw new FailedToApplyEnvironmentException($"Failed to apply configuration to container {cr.ModelResource.Name}", configuration.Exception);
Dcp\ExecutableCreator.cs (2)
68if (configuration.Configuration.Exception is not null) 72configuration.Configuration.Exception);
Lifecycle\DotnetBuildCommandEventingSubscriber.cs (1)
66if (executionConfiguration.Exception is { } exception)
Publishing\ManifestPublishingContext.cs (4)
554if (executionConfiguration.Exception is not null) 556ExceptionDispatchInfo.Throw(executionConfiguration.Exception); 592if (executionConfiguration.Exception is not null) 594ExceptionDispatchInfo.Throw(executionConfiguration.Exception);
Aspire.Hosting.Blazor.Tests (3)
AddBlazorGatewayTests.cs (3)
275if (configuration.Exception is not null) 277throw configuration.Exception; 525Assert.Null(executionConfiguration.Exception);
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
519if (executionConfiguration.Exception is not null) 529Message = executionConfiguration.Exception.Message
Aspire.Hosting.Tests (5)
ExecutionConfigurationGathererTests.cs (5)
262Assert.NotNull(result.Exception); 263var aggregate = Assert.IsType<AggregateException>(result.Exception); 294Assert.Null(result.Exception); 319Assert.NotNull(result.Exception); 320var 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);