36 lines
1.9 KiB
Markdown
36 lines
1.9 KiB
Markdown
|
|
---
|
||
|
|
source_files:
|
||
|
|
- DataPRO/Modules/Groups/GroupList/GroupListModule.cs
|
||
|
|
generated_at: "2026-04-17T16:46:55.033658+00:00"
|
||
|
|
model: "zai-org/GLM-5-FP8"
|
||
|
|
schema_version: 1
|
||
|
|
sha256: "4ac5a94ee419c4b2"
|
||
|
|
---
|
||
|
|
|
||
|
|
# Documentation: GroupListModule
|
||
|
|
|
||
|
|
## 1. Purpose
|
||
|
|
|
||
|
|
The `GroupListModule` is a Prism module responsible for registering the Group List feature's view and view-model with the Unity dependency injection container. It provides assembly-level metadata (name, image, group, and region) that enables the main application shell to discover and display this module as an available component. The module belongs to the "Prepare" assembly group and targets the `GroupListRegion` for UI composition.
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 2. Public Interface
|
||
|
|
|
||
|
|
### `GroupListModule` (Class)
|
||
|
|
Implements `Prism.Modularity.IModule`. The primary module entry point for the Group List feature.
|
||
|
|
|
||
|
|
| Member | Signature | Description |
|
||
|
|
|--------|-----------|-------------|
|
||
|
|
| Constructor | `GroupListModule(IUnityContainer unityContainer)` | Accepts a Unity container via dependency injection and stores it in `_unityContainer`. |
|
||
|
|
| `Initialize` | `void Initialize()` | Registers `IGroupListView` → `GroupListView` and `IGroupListViewModel` → `GroupListViewModel` with the Unity container. |
|
||
|
|
| `OnInitialized` | `void OnInitialized(IContainerProvider containerProvider)` | Empty implementation (no post-initialization logic). |
|
||
|
|
| `RegisterTypes` | `void RegisterTypes(IContainerRegistry containerRegistry)` | Delegates to `Initialize()`. |
|
||
|
|
|
||
|
|
### `GroupListModuleNameAttribute` (Class)
|
||
|
|
Extends `TextAttribute`. Assembly-level attribute providing the module's name.
|
||
|
|
|
||
|
|
| Member | Signature | Description |
|
||
|
|
|--------|-----------|-------------|
|
||
|
|
| Constructor | `GroupListModuleNameAttribute()` | Default constructor; sets `AssemblyName` to `AssemblyNames.GroupList.ToString()`. |
|
||
|
|
| Constructor | `GroupListModuleNameAttribute(string s)` | Overload accepting a string parameter (
|