14 references to MissingParameterValueException
Aspire.Hosting (3)
Orchestrator\ParameterProcessor.cs (1)
479
tcs.SetException(new
MissingParameterValueException
("Parameter value has been deleted."));
ParameterResourceBuilderExtensions.cs (2)
295
?? throw new
MissingParameterValueException
($"Parameter resource could not be used because configuration key '{configurationKey}' is missing and the Parameter has no default value.");
331
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)
1004
var dependentParam = new ParameterResource("dependent-param", p => throw new
MissingParameterValueException
("Should be prompted"), secret: false);
1049
var portParam = new ParameterResource("app-port", p => throw new
MissingParameterValueException
("Should be prompted"), secret: false);
Aspire.Hosting.GitHub.Models (1)
GitHubModelsExtensions.cs (1)
40
throw new
MissingParameterValueException
($"GitHub API key parameter '{name}-gh-apikey' is missing and GITHUB_TOKEN environment variable is not set.");
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)
732
var missingParam = builder.AddParameter("missingParam", () => throw new
MissingParameterValueException
("Parameter 'missingParam' is missing"));
1331
return new ParameterResource(name, _ => configuration[$"Parameters:{name}"] ?? throw new
MissingParameterValueException
($"Parameter '{name}' is missing"), secret);
1347
return new ParameterResource(name, _ => throw new
MissingParameterValueException
($"Parameter '{name}' is missing"), secret: secret);
1377
parameterDefault => configuration["Parameters:generatedParam"] ?? parameterDefault?.GetDefaultValue() ?? throw new
MissingParameterValueException
("Parameter 'generatedParam' is missing"),
1407
_ => throw new
MissingParameterValueException
("Connection string 'mydb' is missing"),
1448
_ => throw new
MissingParameterValueException
("Parameter 'myparam' is missing"),
1489
_ => throw new
MissingParameterValueException
("Parameter 'customparam' is missing"),