# DynamicLoadingOptions

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Options controlling when a dynamic-loading callback runs.

## Definition

```go
type DynamicLoadingOptions struct {
    AlwaysLoadOnStart *bool    `json:"AlwaysLoadOnStart"`
    DependsOnInputs   []string `json:"DependsOnInputs"`
}
```

## Fields

- `AlwaysLoadOnStart`: `*bool` `optional` -- Gets or sets a value indicating whether the callback always runs at the start of the prompt.
- `DependsOnInputs`: `[]string` `optional` -- Gets or sets the names of inputs this input depends on. The callback runs when any of them change.
