Hashbrown.AspNetCore · C# API reference
Hashbrown.AspNetCore.NativeSessionEndpointConfiguration
Upcoming 0.1.0-preview.2 · Unreleased
public static class NativeSessionEndpointConfigurationExplicit authenticated native-session composition; legacy stateless routes remain independently configured.
Members
Configure
public static void Configure(Microsoft.Extensions.DependencyInjection.IServiceCollection services, string agentName, Hashbrown.AspNetCore.INativeSessionJournal journal, Hashbrown.AspNetCore.NativeToolCatalog catalog, System.Func<Microsoft.AspNetCore.Http.HttpContext, string?> scope, Hashbrown.AspNetCore.NativeSessionOptions? options = null);Registers a stable named durable store, using the explicit trusted scope for native caller isolation. The application initializes and owns journal lifecycle.
Map
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder Map(Microsoft.AspNetCore.Routing.IEndpointRouteBuilder routes, string pattern, Microsoft.Agents.AI.AIAgent agent, string authorizationPolicy);Maps native AG-UI with required authorization, server-owned scope, durable ownership and terminal publication.