CODEX_ADK/BACKEND/Codex.Dal/DalModule.cs
Svrnty 229a0698a3 Initial commit: CODEX_ADK monorepo
Multi-agent AI laboratory with ASP.NET Core 8.0 backend and Flutter frontend.
Implements CQRS architecture, OpenAPI contract-first API design.

BACKEND: Agent management, conversations, executions with PostgreSQL + Ollama
FRONTEND: Cross-platform UI with strict typing and Result-based error handling

Co-Authored-By: Jean-Philippe Brule <jp@svrnty.io>
2025-10-26 23:12:32 -04:00

25 lines
784 B
C#

using Codex.Dal.Services;
using Microsoft.Extensions.DependencyInjection;
using OpenHarbor.CQRS.DynamicQuery.Abstractions;
using PoweredSoft.Data.Core;
using PoweredSoft.Module.Abstractions;
namespace Codex.Dal;
public class DalModule : IModule
{
public IServiceCollection ConfigureServices(IServiceCollection services)
{
services.AddSingleton<IAsyncQueryableHandlerService, InMemoryQueryableHandlerService>();
services.AddTransient(typeof(IQueryableProvider<>), typeof(DefaultQueryableProvider<>));
services.AddSingleton<IEncryptionService, AesEncryptionService>();
services.AddScoped<IOllamaService, OllamaService>();
// Register dynamic queries (paginated)
services.AddDynamicQueries();
return services;
}
}