40 lines
2.0 KiB
Markdown
40 lines
2.0 KiB
Markdown
# Log 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 (COMPLETED/REFACTORED)
|
|
- [x] Identify redundant `callUrl` and `callUrlWithPayloadAsync` wrappers in `BaseObj.cs`.
|
|
- [x] Instead of creating a new service, cleaned up `BaseObj.cs` by removing pass-through methods that merely delegated to `utils`.
|
|
- [x] Updated `Generic.cs` to call `HttpService.CallUrl` directly, eliminating the unnecessary indirection layer.
|
|
|
|
### 2. Redis Service Extraction (COMPLETED)
|
|
- [x] Encapsulate all `redisMan` calls into a `RedisService`.
|
|
- [x] Define a clean interface for key/value and hash operations.
|
|
- [x] **Refactored**: Moved semantic key construction from `RedisService` to `BaseObj` to eliminate redundant service layer.
|
|
- [x] Eliminated `RedisService.cs` as it was absorbed by the `BaseObj` identity-aware implementation.
|
|
|
|
### 3. Data Serializer Extraction (IN_PROGRESS)
|
|
- [x] Analyzed current `DataSerializer.cs` (JSON) and `XmlDataSerializer.cs` (XML) in `IOB-WIN-FORM`.
|
|
- [x] Decided to move these to `IOB_UT_NEXT` to make them available to the entire IOB hierarchy.
|
|
- [ ] Move files to `IOB_UT_NEXT\Iob\Services\`.
|
|
- [ ] Update namespaces and references.
|
|
- [ ] Integrate into `BaseObj.cs` via `protected` helper methods (e.g., `JsonSerialize<T>`, `XmlSerialize<T>`).
|
|
- [ ] Update `Generic.cs` to use the new `BaseObj` helpers.
|
|
|
|
### 4. BaseObj Simplification (COMPLETED)
|
|
- [x] Analyze `BaseObj` responsibilities (State, Config, Messaging, Diagnostics).
|
|
- [x] Remove pass-through methods for `utils` (Network, MAC, WebClients) to reduce "noise" in the base class.
|
|
- [x] Cleaned up commented-out code blocks (`#if false`) to improve readability.
|
|
|
|
## Progress Log
|
|
- [x] Created WIP document.
|
|
- [x] Completed Redis Semantic Refactoring.
|
|
- [x] Completed BaseObj Cleanup.
|
|
- [x] Identified Data Serializer components for extraction.
|
|
- [ ] Started migration of Serializers to `IOB_UT_NEXT`.
|