- افزودن XAiMcpControllerBase. - افزودن IXAiMcpHandler و پیادهسازی XAiMcpHandler. - افزودن DI extensionهای لازم برای ثبت handler و تغییر فایل پروژهٔ سرویس.
20 lines
504 B
C#
20 lines
504 B
C#
using xAiService.Services;
|
|
using xAiService.Interfaces;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace xAiService.Extensions
|
|
{
|
|
public static class DIExtensions
|
|
{
|
|
/// <summary>
|
|
/// Register XAiMcpHandler Service ...
|
|
/// </summary>
|
|
/// <param name="source"></param>
|
|
public static void AddXAiMcpHandler(
|
|
this IServiceCollection source
|
|
)
|
|
{
|
|
source.AddScoped<IXAiMcpHandler, XAiMcpHandler>();
|
|
}
|
|
}
|
|
} |