last ...
This commit is contained in:
+20
@@ -26,6 +26,11 @@ using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using IdentityModel.AspNetCore.OAuth2Introspection;
|
||||
using xPushService.Helpers;
|
||||
using xAiApi.DI;
|
||||
using xExceptions.Constants;
|
||||
using xAiApi.Interfaces;
|
||||
using xAiApi.Providers;
|
||||
using xAiModels.DI;
|
||||
|
||||
namespace xAiApi
|
||||
{
|
||||
@@ -169,6 +174,21 @@ namespace xAiApi
|
||||
lifeTime: lifeTime,
|
||||
repositoryType: repositoryType
|
||||
);
|
||||
|
||||
//
|
||||
// Register AiApi Data Service ...
|
||||
services.AddXAiDataService<XAiApiDbContext>(
|
||||
lifeTime: lifeTime,
|
||||
repositoryType: repositoryType
|
||||
);
|
||||
|
||||
//
|
||||
// Register XAiApi Configuration ...
|
||||
services.AddXAiApiConfiguration(Configuration);
|
||||
|
||||
//
|
||||
// Register Default Ai Service ...
|
||||
services.AddScoped<IXDefaultAiService, XDefaultAiService>();
|
||||
}
|
||||
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
|
||||
Reference in New Issue
Block a user