AyCode.Core/AyCode.Interfaces.Server
Loretta fbe142c6f3 Add detailed README.md files for all projects and folders
Added comprehensive README.md documentation to every project and subfolder in the solution. Each README describes the purpose, key files, structure, dependencies, and design patterns for its area. This improves codebase navigability and maintainability, and includes a maintenance note to keep docs in sync with future code changes.
2026-03-28 17:24:56 +01:00
..
Logins Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00
AyCode.Interfaces.Server.csproj Add .targets file 2025-08-31 13:07:34 +02:00
README.md Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00

README.md

AyCode.Interfaces.Server

Server-side interface contracts extending AyCode.Interfaces. Defines authentication and login service contracts that are only relevant on the server.

Key Files

Logins/

  • IAcLoginDtoBase.cs — Empty marker interface for login DTOs.
  • IAcLoggedInModelBase.cs — Generic interface for the logged-in user model. Properties: IsLoggedIn, LoggedInUser, AccessToken, LoginErrorCode. Methods: AddLoggedInUser(), Logout(). Heavily constrained generics (TUser, TUserToken, TProfile, TCompany, TUserToServiceProvider, TProfileAddress).
  • IAcLoginServiceServer.cs — Server-side login service extending IAcLoginServiceCommon. Adds: Login()/LoginAsync() (returns TResultLoggedInModel), UpdatePassword(). Returns AcErrorCode for validation.

Dependencies

Dependency Purpose
AyCode.Interfaces Base interface contracts (users, profiles, companies, logins)
AyCode.Core Error codes (AcErrorCode)
AyCode.Core.Server Server-side core
AyCode.Entities Entity base classes
AyCode.Entities.Server Server-side entities

LLM Maintenance: If you modify code in this folder, update this README to reflect the changes. If you notice the README content does not match the current code, automatically update the README to match the code.