last ...
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using AutoMapper;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using xAiApi.AI.Interfaces;
|
||||
using xAiApi.AI.Mppings;
|
||||
using xAiApi.AI.Services;
|
||||
|
||||
namespace xAiApi.AI.DI
|
||||
@@ -16,7 +18,17 @@ namespace xAiApi.AI.DI
|
||||
)
|
||||
{
|
||||
//
|
||||
// Register AutoMapper Using Mapping Profiles ...
|
||||
services.AddAutoMapper(typeof(MappingProfiles).Assembly);
|
||||
|
||||
//
|
||||
// TODO: Remove this ...
|
||||
services.AddSingleton<IXAIService, XAIService>();
|
||||
|
||||
//
|
||||
// Since we Used Repositories in this Service,
|
||||
// we have to Register it Scoped Lifetime ...
|
||||
services.AddScoped<IXAiProvider, XAiProvider>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user