AyCode.Core/AyCode.Models.Server/DynamicMethods/README.md

10 lines
685 B
Markdown

# 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.