13 instantiations of MissingParameterValueException
Aspire.Hosting (3)
Orchestrator\ParameterProcessor.cs (1)
476
tcs.SetException(new
MissingParameterValueException
("Parameter value has been deleted."));
ParameterResourceBuilderExtensions.cs (2)
293
?? throw new
MissingParameterValueException
($"Parameter resource could not be used because configuration key '{configurationKey}' is missing and the Parameter has no default value.");
329
throw new
MissingParameterValueException
($"Connection string parameter resource could not be used because connection string '{name}' is missing."),
Aspire.Hosting.Azure.Tests (2)
AzureDeployerTests.cs (2)
1063
var dependentParam = new ParameterResource("dependent-param", p => throw new
MissingParameterValueException
("Should be prompted"), secret: false);
1108
var portParam = new ParameterResource("app-port", p => throw new
MissingParameterValueException
("Should be prompted"), secret: false);
Aspire.Hosting.OpenAI (1)
OpenAIExtensions.cs (1)
35
throw new
MissingParameterValueException
($"OpenAI API key parameter '{name}-openai-apikey' is missing and OPENAI_API_KEY environment variable is not set.");
Aspire.Hosting.Tests (7)
Orchestrator\ParameterProcessorTests.cs (7)
730
var missingParam = builder.AddParameter("missingParam", () => throw new
MissingParameterValueException
("Parameter 'missingParam' is missing"));
1329
return new ParameterResource(name, _ => configuration[$"Parameters:{name}"] ?? throw new
MissingParameterValueException
($"Parameter '{name}' is missing"), secret);
1345
return new ParameterResource(name, _ => throw new
MissingParameterValueException
($"Parameter '{name}' is missing"), secret: secret);
1375
parameterDefault => configuration["Parameters:generatedParam"] ?? parameterDefault?.GetDefaultValue() ?? throw new
MissingParameterValueException
("Parameter 'generatedParam' is missing"),
1405
_ => throw new
MissingParameterValueException
("Connection string 'mydb' is missing"),
1446
_ => throw new
MissingParameterValueException
("Parameter 'myparam' is missing"),
1487
_ => throw new
MissingParameterValueException
("Parameter 'customparam' is missing"),
17 references to MissingParameterValueException
Aspire.Hosting (6)
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 (3)
169
if (interactionService.IsAvailable && ex is
MissingParameterValueException
)
187
var stateText = ex is
MissingParameterValueException
?
193
var stateStyle = ex is
MissingParameterValueException
?
Publishing\ResourceContainerImageManager.cs (1)
1021
catch (
MissingParameterValueException
)
Aspire.Hosting.Kubernetes (3)
KubernetesEnvironmentResource.cs (3)
604
catch (
MissingParameterValueException
)
633
catch (
MissingParameterValueException
)
670
catch (
MissingParameterValueException
)
Aspire.Hosting.Radius (2)
Publishing\RadiusInfrastructureBuilder.cs (2)
2854
catch (
MissingParameterValueException
)
4391
ex is
MissingParameterValueException
||
Aspire.Hosting.Tests (6)
AddParameterTests.cs (1)
781
await Assert.ThrowsAsync<
MissingParameterValueException
>(async () =>
Orchestrator\ParameterProcessorTests.cs (1)
137
Assert.IsType<
MissingParameterValueException
>(parameterWithMissingValue.WaitForValueTcs.Task.Exception?.InnerException);
WithEnvironmentTests.cs (2)
170
var
innerException = Assert.IsType<
MissingParameterValueException
>(exception.InnerException);
WithReferenceTests.cs (2)
344
var
inner = Assert.IsType<
MissingParameterValueException
>(aggregate.InnerException);