Add MCP Handler Integration
- افزودن XAiMcpControllerBase. - افزودن IXAiMcpHandler و پیادهسازی XAiMcpHandler. - افزودن DI extensionهای لازم برای ثبت handler و تغییر فایل پروژهٔ سرویس.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user