Files
DP44/docs/ai/DataPRO/Modules/Groups/GroupChannelList.md

40 lines
2.2 KiB
Markdown
Raw Normal View History

2026-04-17 14:55:32 -04:00
---
source_files:
- DataPRO/Modules/Groups/GroupChannelList/GroupChannelListModule.cs
generated_at: "2026-04-17T16:46:52.499953+00:00"
model: "zai-org/GLM-5-FP8"
schema_version: 1
sha256: "b6c76c982c83d2d8"
---
# Documentation: GroupChannelListModule
## 1. Purpose
This module provides the "Group Channel List" functionality within a modular WPF application built on the Prism framework. It serves as a self-contained unit that registers views and view-models for group channel listing and settings management with the Unity dependency injection container. The module is categorized under the "Prepare" assembly group and exposes assembly-level metadata (name and image) for use by the main application shell, likely for module discovery and UI presentation purposes.
## 2. Public Interface
### `GroupChannelListModule` (class)
**Implements:** `Prism.Modularity.IModule`
The main module class responsible for type registration with the DI container.
| Member | Signature | Description |
|--------|-----------|-------------|
| Constructor | `GroupChannelListModule(IUnityContainer unityContainer)` | Accepts a Unity container instance via constructor injection. |
| `Initialize` | `void Initialize()` | Registers three type mappings with Unity: `IGroupChannelListViewModel``GroupChannelListViewModel`, `IGroupChannelListView``GroupChannelListView`, `IGroupChannelSettingsListView``GroupChannelSettingsListView`. |
| `OnInitialized` | `void OnInitialized(IContainerProvider containerProvider)` | Empty implementation. No post-initialization logic executed. |
| `RegisterTypes` | `void RegisterTypes(IContainerRegistry containerRegistry)` | Delegates to `Initialize()`. This is the Prism lifecycle method for type registration. |
---
### `GroupChannelListModuleNameAttribute` (class)
**Inherits from:** `TextAttribute`
Assembly-level attribute exposing the module's name as text metadata.
| Member | Signature | Description |
|--------|-----------|-------------|
| Constructor | `GroupChannelListModuleNameAttribute()` | Default constructor; sets `AssemblyName` to `AssemblyNames.GroupChannelList.ToString()`. |
| Constructor | `GroupChannelListModuleNameAttribute(string s)` | Overload accepting a string parameter (parameter is unused).