Files
Mapo-IOB-WIN/refactoring_wip.md
T

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 CommunicationService using HttpClient.
  • Italian Commenting Requirement: All new/modified code comments must be in Italian.

2. Redis Service Extraction

  • Encapsulate all redisMan calls into a RedisService.
  • Define a clean interface for key/value and hash operations.

3. Data Serializer Extraction

  • Move all JsonConvert and custom string formatting (e.g., qEncodeFLog, qEncodeIN) to a DataSerializer service.
  • Centralize CultureInfo.InvariantCulture usage.

Progress Log

  • Created WIP document.
  • Analyzed Generic.cs for Phase 1 candidates (found ~200 occurrences of key patterns).
  • Started Extraction of CommunicationService.
  • Started Extraction of RedisService.
  • Started Extraction of DataSerializer.