Skip to content
Alessio Di Salvo edited this page Oct 30, 2026 · 5 revisions

Welcome to the ModularNet Wiki

This wiki provides component-level documentation for the ModularNet solution.

For architectural rules, layer dependency constraints, naming conventions, testing standards, and how to add new features, refer to Coding Standards in the main repository.

Solution Overview

ModularNet is organized into five core layers plus two test projects:

  • Api (ModularNet.Api): Controllers, middlewares (FirebaseAuthenticationMiddleware, UserIdExtractionMiddleware), API helpers (TokenHelper), email HTML templates, and application startup (Program.cs, ApiServiceRegistration.cs).
  • Business (ModularNet.Business): Core business logic implemented in *Manager classes (UsersManager, AuthManager, CacheManager, AppSettingsManager, SecretsManager, EncryptManager, EmailServiceManager, EmailVerifierManager, UsersSettingsManager, WebAppConfigsManager, AuditsManager, LogsManager, HealthChecksManager), registered in BusinessServiceRegistration.cs.
  • Domain (ModularNet.Domain): Pure POCOs (Entities, Requests), Enums, and CustomExceptions with no business logic.
  • Infrastructure (ModularNet.Infrastructure): External service connectors, transaction coordination, and data access implemented in *Repository, UnitOfWork, and provider/factory classes (UsersRepository, UsersSettingsRepository, AppSettingsRepository, SecretsRepository, InMemoryCacheRepository, RedisRepository, EmailServiceRepository, AuditsRepository, LogsRepository, HealthChecksRepository, UnitOfWork, AuthenticationService, JwtProvider, DbConnectionFactory, RedisConnectionFactory), registered in InfrastructureServiceRegistration.cs.
  • Shared (ModularNet.Shared): Stateless utilities (DateHelper, EnumHelper).
  • Tests (ModularNet.UnitTests, ModularNet.IntegrationTests): xUnit and Moq unit tests for business managers and end-to-end integration tests.

Clone this wiki locally