AyCode.Core/AyCode.Models.Server/DynamicMethods
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
..
AcDynamicMethodCallModel.cs Refactor SignalR dynamic method lookup with static registry 2026-01-02 15:51:50 +01:00
AcDynamicMethodRegistry.cs Refactor SignalR dynamic method lookup with static registry 2026-01-02 15:51:50 +01:00
AcMethodInfoModel.cs Add SignalR common services and dependencies 2025-08-31 12:39:47 +02:00
README.md Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00

README.md

DynamicMethods

Reflection-based infrastructure for dynamically dispatching method calls by message tag, primarily used for SignalR message routing.

Key Files

  • AcMethodInfoModel.cs — Wraps a MethodInfo and its TagAttribute with cached parameter metadata.
  • AcDynamicMethodCallModel.cs — Binds an object instance to its attributed methods, using a static ConcurrentDictionary and FrozenDictionary cache keyed by message tag. Reflection runs once per type.
  • AcDynamicMethodRegistry.cs — Registry with lazy method lookup across multiple registered instances. Caches discovered methods statically by message tag and resolves instances per request.

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.