# InputLoadOptions Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [InputLoadOptions](/reference/api/csharp/aspire.hosting/inputloadoptions.md)
- Kind: `Properties`
- Members: `3`

Represents configuration options for dynamically loading input data.

## AlwaysLoadOnStart

- Name: `AlwaysLoadOnStart`
- Modifiers: `get; init`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Gets a value indicating whether [InputLoadOptions.LoadCallback](/reference/api/csharp/aspire.hosting/inputloadoptions/properties.md#loadcallback) should always be executed at the start of the input prompt.

```csharp
public bool AlwaysLoadOnStart { get; init; }
```

## Remarks

[InputLoadOptions.LoadCallback](/reference/api/csharp/aspire.hosting/inputloadoptions/properties.md#loadcallback) is executed at the start of the input prompt except when it depends on other inputs with [InputLoadOptions.DependsOnInputs](/reference/api/csharp/aspire.hosting/inputloadoptions/properties.md#dependsoninputs). Setting this to `true` forces the load to always occur at the start of the prompt, regardless of dependencies.

## DependsOnInputs

- Name: `DependsOnInputs`
- Modifiers: `nullable` `get; init`
- Returns: `IReadOnlyList<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Gets the list of input names that this input depends on. [InputLoadOptions.LoadCallback](/reference/api/csharp/aspire.hosting/inputloadoptions/properties.md#loadcallback) is executed whenever any of the specified inputs change.

```csharp
public IReadOnlyList<string>? DependsOnInputs { get; init; }
```

## LoadCallback

- Name: `LoadCallback`
- Modifiers: `get; init`
- Returns: `Func<LoadInputContext, Task>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Gets the callback function that is invoked to perform a load operation using the specified input context.

```csharp
public Func<LoadInputContext, Task> LoadCallback { get; init; }
```
