1.7 KiB
1.7 KiB
WIP: Refactoring Phase 1 - Infrastructure Extraction
Status: IN_PROGRESS
Objective
Extract infrastructure and helper components from Generic.cs to improve modularity and reduce the monolithic footprint.
Tasks
1. Communication Service Extraction
- Extract REST/HTTP logic (currently using
utils.callUrl,callUrlWithPayloadAsync, etc.). - Implement a singleton/service-based
CommunicationServiceusingHttpClient. - Italian Commenting Requirement: All new/modified code comments must be in Italian.
2. Redis Service Extraction (COMPLETED)
- Encapsulate all
redisMancalls into aRedisService. - Define a clean interface for key/value and hash operations.
- Refactored: Moved semantic key construction from
RedisServicetoBaseObjto eliminate redundant service layer.
3. Data Serializer Extraction
- Move all
JsonConvertand custom string formatting (e.g.,qEncodeFLog,qEncodeIN) to aDataSerializerservice. - Centralize
CultureInfo.InvariantCultureusage.
4. BaseObj Simplification (NEW)
- Analyze
BaseObjresponsibilities (State, Config, Messaging, Diagnostics). - Identify candidates for extraction into specialized services (e.g.,
QueueManager,ConfigService,DiagnosticService). - Implement extraction of identified components.
Progress Log
- Created WIP document.
- Analyzed
Generic.csfor Phase 1 candidates. - Completed Redis Semantic Refactoring:
- Moved key construction logic from
RedisServicetoBaseObj. - Refactored
Generic.csto useBaseObjsemantic methods. - Eliminated redundant
RedisService.cs.
- Moved key construction logic from
- Started Analysis of
BaseObjto identify extraction candidates.