# LoadInputContext Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [LoadInputContext](/reference/api/csharp/aspire.hosting/loadinputcontext.md)
- Kind: `Properties`
- Members: `4`

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

## AllInputs

- Name: `AllInputs`
- Modifiers: `get; init`
- Returns: [InteractionInputCollection](/reference/api/csharp/aspire.hosting/interactioninputcollection.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Gets the collection of all [InteractionInput](/reference/api/csharp/aspire.hosting/interactioninput.md) in this prompt.

```csharp
public InteractionInputCollection AllInputs { get; init; }
```

## CancellationToken

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

Gets the [LoadInputContext.CancellationToken](/reference/api/csharp/aspire.hosting/loadinputcontext/properties.md#cancellationtoken).

```csharp
public CancellationToken CancellationToken { get; init; }
```

## Input

- Name: `Input`
- Modifiers: `get; init`
- Returns: [InteractionInput](/reference/api/csharp/aspire.hosting/interactioninput.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Gets the loading input. This is the target of [InputLoadOptions](/reference/api/csharp/aspire.hosting/inputloadoptions.md).

```csharp
public InteractionInput Input { get; init; }
```

## Services

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

Gets the service provider.

```csharp
public IServiceProvider Services { get; init; }
```
