9 instantiations of FailedToApplyEnvironmentException
Aspire.Hosting (8)
ApplicationModel\ExecutableLaunchRecipe.cs (1)
380
throw new
FailedToApplyEnvironmentException
(
Dcp\ContainerCreator.cs (2)
222
throw new
FailedToApplyEnvironmentException
();
230
throw new
FailedToApplyEnvironmentException
($"Failed to apply configuration to container {cr.ModelResource.Name}", configuration.Exception);
Dcp\ExecutableCreator.cs (5)
70
throw new
FailedToApplyEnvironmentException
(
104
throw new
FailedToApplyEnvironmentException
(failureMessage, ex);
114
throw new
FailedToApplyEnvironmentException
(failureMessage, ex);
149
throw new
FailedToApplyEnvironmentException
(
156
throw new
FailedToApplyEnvironmentException
(
Aspire.Hosting.Tests (1)
ResourceCommandServiceTests.cs (1)
396
executeCommand: _ => throw new
FailedToApplyEnvironmentException
(diagnostic));
12 references to FailedToApplyEnvironmentException
Aspire.Hosting (4)
Dcp\DcpExecutor.cs (2)
1088
catch (
FailedToApplyEnvironmentException
ex)
1300
if (ex is not
FailedToApplyEnvironmentException
)
Dcp\ExecutableCreator.cs (2)
91
catch (
FailedToApplyEnvironmentException
ex)
450
catch (
FailedToApplyEnvironmentException
ex)
Aspire.Hosting.Tests (8)
Dcp\DcpExecutorTests.cs (6)
6273
var
exception = await Assert.ThrowsAsync<
FailedToApplyEnvironmentException
>(
9365
var
exception = await Assert.ThrowsAsync<
FailedToApplyEnvironmentException
>(
9498
var
exception = await Assert.ThrowsAsync<
FailedToApplyEnvironmentException
>(
Dcp\ExecutableLaunchPlanTests.cs (2)
116
var
exception = await Assert.ThrowsAsync<
FailedToApplyEnvironmentException
>(