4 instantiations of MissingParameterValueException
Aspire.Hosting (2)
ParameterResourceBuilderExtensions.cs (2)
156?? throw new MissingParameterValueException($"Parameter resource could not be used because configuration key '{configurationKey}' is missing and the Parameter has no default value."); 194throw new MissingParameterValueException($"Connection string parameter resource could not be used because connection string '{name}' is missing."),
Aspire.Hosting.Tests (2)
Orchestrator\ParameterProcessorTests.cs (2)
330return new ParameterResource(name, _ => configuration[$"Parameters:{name}"] ?? throw new MissingParameterValueException($"Parameter '{name}' is missing"), secret); 335return new ParameterResource(name, _ => throw new MissingParameterValueException($"Parameter '{name}' is missing"), secret: secret);
9 references to MissingParameterValueException
Aspire.Hosting (4)
MissingParameterValueException.cs (2)
20/// Initializes a new instance of the <see cref="MissingParameterValueException"/> class with a specified error message. 28/// Initializes a new instance of the <see cref="MissingParameterValueException"/> class with a specified error message
Orchestrator\ParameterProcessor.cs (2)
82if (interactionService.IsAvailable && ex is MissingParameterValueException) 100var stateText = ex is MissingParameterValueException ?
Aspire.Hosting.Tests (5)
Orchestrator\ParameterProcessorTests.cs (1)
128Assert.IsType<MissingParameterValueException>(parameterWithMissingValue.WaitForValueTcs.Task.Exception?.InnerException);
WithEnvironmentTests.cs (2)
164var exception = await Assert.ThrowsAsync<MissingParameterValueException>(async () => await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
WithReferenceTests.cs (2)
194var exception = await Assert.ThrowsAsync<MissingParameterValueException>(async () =>