Skip to content
Docs Try Aspire

InputLoadOptions Properties

Class Properties 3 members
Represents configuration options for dynamically loading input data.
AlwaysLoadOnStart Section titled AlwaysLoadOnStart bool
Gets a value indicating whether InputLoadOptions.LoadCallback should always be executed at the start of the input prompt.
public bool AlwaysLoadOnStart { get; init; }
InputLoadOptions.LoadCallback is executed at the start of the input prompt except when it depends on other inputs with InputLoadOptions.DependsOnInputs. Setting this to true forces the load to always occur at the start of the prompt, regardless of dependencies.
DependsOnInputs Section titled DependsOnInputs nullable IReadOnlyList<string>
Gets the list of input names that this input depends on. InputLoadOptions.LoadCallback is executed whenever any of the specified inputs change.
public IReadOnlyList<string>? DependsOnInputs { get; init; }
LoadCallback Section titled LoadCallback Func<LoadInputContext, Task>
Gets the callback function that is invoked to perform a load operation using the specified input context.
public Func<LoadInputContext, Task> LoadCallback { get; init; }