# TraconTestHostOptions

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.testing.tracontesthostoptions/
> Summary: TraconTestHostOptions: Settings for TraconTestHost.StartAsync.

<div class="api-provenance">Namespace Tracon.Testing · Assembly <code>Tracon.Testing.dll</code></div>

Settings for [TraconTestHost.StartAsync](/api/tracon.testing.tracontesthost/#Tracon_Testing_TraconTestHost_StartAsync_System_Action_Tracon_Testing_TraconTestHostOptions__System_Threading_CancellationToken_).

```csharp
public sealed class TraconTestHostOptions
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.testing.tracontesthostoptions/">TraconTestHostOptions</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Constructors

### <a id="Tracon_Testing_TraconTestHostOptions__ctor"></a> TraconTestHostOptions\(\)

```csharp
public TraconTestHostOptions()
```

## Properties

### <a id="Tracon_Testing_TraconTestHostOptions_ConfigureEndpoints"></a> ConfigureEndpoints

Changes the `MapTracon` endpoint settings.

```csharp
public Action<TraconEndpointOptions>? ConfigureEndpoints { get; set; }
```

#### Property Value

 [Action](https://learn.microsoft.com/dotnet/api/system.action\-1)<[TraconEndpointOptions](/api/tracon.traconendpointoptions/)\>?

### <a id="Tracon_Testing_TraconTestHostOptions_ConfigureServices"></a> ConfigureServices

Registers additional services. Runs BEFORE the `AddTracon` call.

```csharp
public Action<IServiceCollection>? ConfigureServices { get; set; }
```

#### Property Value

 [Action](https://learn.microsoft.com/dotnet/api/system.action\-1)<[IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection)\>?

### <a id="Tracon_Testing_TraconTestHostOptions_ConfigureTracon"></a> ConfigureTracon

Changes the Tracon chain (tool, agent, skill, extra model provider registration).

```csharp
public Action<ITraconBuilder>? ConfigureTracon { get; set; }
```

#### Property Value

 [Action](https://learn.microsoft.com/dotnet/api/system.action\-1)<[ITraconBuilder](/api/tracon.itraconbuilder/)\>?

### <a id="Tracon_Testing_TraconTestHostOptions_ModelProvider"></a> ModelProvider

The default model provider registered on the host. Usually the only
thing you need to configure for your own agents and tools.

```csharp
public FakeModelProvider ModelProvider { get; set; }
```

#### Property Value

 [FakeModelProvider](/api/tracon.testing.fakemodelprovider/)

### <a id="Tracon_Testing_TraconTestHostOptions_Prefix"></a> Prefix

Route prefix.

```csharp
public string Prefix { get; set; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)
