.NET API
TraconEndpointRouteBuilderExtensions
Tracon.AspNetCore.dllExtensions that connect Tracon’s HTTP surface to the application.
public static class TraconEndpointRouteBuilderExtensionsInheritance
Section titled “Inheritance”object ← TraconEndpointRouteBuilderExtensions
Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Fields
Section titled “Fields”DefaultPrefix
Section titled “ DefaultPrefix”Default path prefix.
public const string DefaultPrefix = "/tracon"Field Value
Section titled “Field Value”Methods
Section titled “Methods”MapTracon(IEndpointRouteBuilder, string, Action<TraconEndpointOptions>?)
Section titled “ MapTracon(IEndpointRouteBuilder, string, Action<TraconEndpointOptions>?)”Connects the Tracon management API and the OpenAI-compatible run endpoints.
public static IEndpointConventionBuilder MapTracon(this IEndpointRouteBuilder endpoints, string prefix = "/tracon", Action<TraconEndpointOptions>? configure = null)Parameters
Section titled “Parameters”endpoints IEndpointRouteBuilder
The application’s routing builder.
prefix string
Path prefix. Default is /tracon.
configure Action<TraconEndpointOptions>?
Hook that mutates access and streaming settings.
Returns
Section titled “Returns”The convention builder for the protected endpoints. Every convention added only applies to the protected endpoints.
Remarks
Section titled “Remarks”Endpoints fall into two groups. {prefix}/api/meta is reachable
without authentication; it is needed for the UI to learn which
authentication method to use and returns no sensitive data. Every other
endpoint passes through the three-layer protection.
The returned builder represents only the protected group.
This is deliberate: if the meta endpoint were also locked when the
caller writes MapTracon(...).RequireAuthorization, the UI
could never learn the authentication method and could never open a
session.
app.MapTracon("/tracon", options =>{ options.RequireAuthorization("TraconAdmin");});Exceptions
Section titled “Exceptions”endpoints is null.
prefix is empty.
AddTracon has not been called.