mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-02-04 05:35:44 +00:00
28 lines
811 B
C#
28 lines
811 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Radzen;
|
|
|
|
/// <summary>
|
|
/// Class with IServiceCollection extensions methods.
|
|
/// </summary>
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
/// <summary>
|
|
/// Add Radzen Blazor components services
|
|
/// </summary>
|
|
/// <param name="services">Service collection</param>
|
|
/// <returns>The service collection for chaining.</returns>
|
|
public static IServiceCollection AddRadzenComponents(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<DialogService>();
|
|
services.AddScoped<NotificationService>();
|
|
services.AddScoped<TooltipService>();
|
|
services.AddScoped<ContextMenuService>();
|
|
services.AddScoped<ThemeService>();
|
|
services.AddAIChatService();
|
|
|
|
return services;
|
|
}
|
|
}
|
|
|