Questa pagina non è ancora tradotta in italiano: qui la trovi in inglese.
ClientServiceExtensions class
Extension methods for registering Novior.MentorAgent.Blazor services in Blazor WASM.
On this page
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Blazor.Extensions. Package: Novior.MentorAgent.Blazor.
public static class ClientServiceExtensions
dotnet add package Novior.MentorAgent.BlazorMethods
Section titled “Methods”AddMentorAgentBlazor
Section titled “AddMentorAgentBlazor”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().
// Client project Program.cs
builder.Services.AddMentorAgentBlazor(options =>
{
options.HubUrl = "/mentor-hub";
options.BotName = "My Assistant";
options.Language = MentorLanguage.English;
options.PrimaryColor = "#7c3aed";
});