.NET API
TraconUiBuilderExtensions
Namespace Tracon · Assembly
Tracon.UI.dllProvides extensions that register the embedded management UI.
public static class TraconUiBuilderExtensions- Inheritance
- object ← TraconUiBuilderExtensions
- Inherited Members
- object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Section titled “Methods”UseUI(ITraconBuilder)
Section titled “ UseUI(ITraconBuilder)”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)Parameters
Section titled “Parameters”builder ITraconBuilder
The Tracon configuration chain.
Returns
Section titled “Returns”The continuation of the chain.
Remarks
Section titled “Remarks”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, so calling UseUI twice registers
the UI once.
builder.AddTracon() .UseOpenAI(apiKey) .UseUI();
app.MapTracon("/tracon");Exceptions
Section titled “Exceptions”builder is null.