1.2 KiB
1.2 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
- Encapsulate all
redisMancalls into aRedisService. - Define a clean interface for key/value and hash operations.
3. Data Serializer Extraction
- Move all
JsonConvertand custom string formatting (e.g.,qEncodeFLog,qEncodeIN) to aDataSerializerservice. - Centralize
CultureInfo.InvariantCultureusage.
Progress Log
- Created WIP document.
- Analyzed
Generic.csfor Phase 1 candidates (found ~200 occurrences of key patterns). - Started Extraction of
CommunicationService. - Started Extraction of
RedisService. - Started Extraction of
DataSerializer.