MentorAgent Docs
Menu

Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.

ReferencePackage: Novior.MentorAgent.Blazor

ClientServiceExtensions class

Extension methods for registering Novior.MentorAgent.Blazor services in Blazor WASM.

On this page

Namespace: Novior.MentorAgent.Blazor.Extensions. Package: Novior.MentorAgent.Blazor.

public static class ClientServiceExtensions

Terminal
dotnet add package Novior.MentorAgent.Blazor

public static IServiceCollection AddMentorAgentBlazor(this IServiceCollection services, Action<MentorAgentBlazorOptions> configure)

Registers MentorAgent client services for Blazor WASM. Install this in your Blazor WASM / Blazor Auto client project. Your server project must have AddMentorAgent() + AddMentorAgentServer().

Example
// Client project Program.cs
builder.Services.AddMentorAgentBlazor(options =>
{
    options.HubUrl       = "/mentor-hub";
    options.BotName      = "My Assistant";
    options.Language     = MentorLanguage.English;
    options.PrimaryColor = "#7c3aed";
});