# LoadInputContext

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

The context for dynamic input loading. Used with [InputLoadOptions.LoadCallback](/reference/api/csharp/aspire.hosting/inputloadoptions/properties.md#loadcallback).

## Definition

```csharp
namespace Aspire.Hosting;

public sealed class LoadInputContext
{
    // ...
}
```

## Constructors

- [LoadInputContext](/reference/api/csharp/aspire.hosting/loadinputcontext/constructors.md#constructor)

## Properties

- [AllInputs](/reference/api/csharp/aspire.hosting/loadinputcontext/properties.md#allinputs) : [InteractionInputCollection](/reference/api/csharp/aspire.hosting/interactioninputcollection.md) `get; init` -- Gets the collection of all [InteractionInput](/reference/api/csharp/aspire.hosting/interactioninput.md) in this prompt.
- [CancellationToken](/reference/api/csharp/aspire.hosting/loadinputcontext/properties.md#cancellationtoken) : `CancellationToken` `get; init` -- Gets the [LoadInputContext.CancellationToken](/reference/api/csharp/aspire.hosting/loadinputcontext/properties.md#cancellationtoken).
- [Input](/reference/api/csharp/aspire.hosting/loadinputcontext/properties.md#input) : [InteractionInput](/reference/api/csharp/aspire.hosting/interactioninput.md) `get; init` -- Gets the loading input. This is the target of [InputLoadOptions](/reference/api/csharp/aspire.hosting/inputloadoptions.md).
- [Services](/reference/api/csharp/aspire.hosting/loadinputcontext/properties.md#services) : `IServiceProvider` `get; init` -- Gets the service provider.
