Skip to content
Tracon

TraconUiBuilderExtensions

Namespace Tracon · Assembly Tracon.UI.dll

Provides extensions that register the embedded management UI.

public static class TraconUiBuilderExtensions

objectTraconUiBuilderExtensions

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Registers the embedded management UI. MapTracon finds the registration and binds the UI routes under the same prefix.

public static ITraconBuilder UseUI(this ITraconBuilder builder)

builder ITraconBuilder

The Tracon configuration chain.

ITraconBuilder

The continuation of the chain.

No separate mapping call is required. The prefix is written in one place - inside MapTracon - because a prefix written in two places, once out of sync, would make the UI show a blank page without any error.

Registration uses TryAdd. A consumer that registers its own ITraconUiProvider implementation earlier wins (the replaceable-extension rule).

builder.AddTracon()
.UseOpenAI(apiKey)
.UseUI();
app.MapTracon("/tracon");

ArgumentNullException

builder is null.