mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-06 04:49:07 +00:00
16 lines
457 B
C#
16 lines
457 B
C#
|
namespace MudBlazor;
|
|||
|
|
|||
|
public static class ServiceCollectionEx
|
|||
|
{
|
|||
|
public static IServiceCollection AddMudMarkdownServices(this IServiceCollection @this)
|
|||
|
{
|
|||
|
return @this.AddScoped<IMudMarkdownThemeService, MudMarkdownThemeService>();
|
|||
|
}
|
|||
|
|
|||
|
public static IServiceCollection AddMudMarkdownClipboardService<T>(this IServiceCollection @this)
|
|||
|
where T : class, IMudMarkdownClipboardService
|
|||
|
{
|
|||
|
return @this.AddScoped<IMudMarkdownClipboardService, T>();
|
|||
|
}
|
|||
|
}
|