Manual Module Connection Guide for OutfitTool Host Application
This guide describes the process of manually connecting modules to the OutfitTool host application. Modules extend the functionality of the main application and can be connected at any time.
General Module Requirements
For successful connection, the module must meet the following requirements:
- Be compiled as a .NET assembly (DLL file)
- Implement API version 1 interfaces (
IModuleInfoandIModuleController) - Contain
ModuleInfoandModuleControllerclasses with correct interface implementations - Be compatible with the .NET version used by the host application
Step-by-Step Module Connection Guide
Step 1: Module Compilation
Before connecting, the module must be compiled:
- Open the module project in Visual Studio or another IDE
- Ensure the project references the correct API version (
API1.dll) - Verify the implementation of
IModuleInfoandIModuleControllerinterfaces - Compile the project in Release mode
- Find the compiled DLL file in the project's
bin/Releasefolder
Step 2: Copying Module to Host Directory
After compilation, the module must be copied to the appropriate host application directory:
- Find the OutfitTool host application installation directory (e.g.,
C:\Program Files\OutfitTool) - Inside the host directory, find or create a
modulesfolder - Create a new subfolder inside
moduleswith the module name (e.g.,MailAgent) - Copy the compiled DLL file to this folder and rename it to match the folder name (e.g.,
MailAgent.dll) - If necessary, copy all module dependency DLL files to the same folder
The folder structure should look as follows:
OutfitTool.exe
./modules/
MailAgent/
MailAgent.dll
API1.dll
Other_Dependencies.dll
ImageProcessor/
ImageProcessor.dll
API1.dll
...
Step 3: Enabling Module in Host Application
After copying the files, the module must be enabled in the host application interface:
- Launch the OutfitTool host application
- Go to the "Modules" tab (or similar, depending on the interface)
- Find your module in the list of available modules
- Click the "Enable" button (or state toggle) to activate the module
- The application will automatically load and initialize the module
Upon successful module loading:
- A message about module loading will appear in the application logs
- Module commands will become available in the interface (e.g., in the context menu in the system tray)
- The module icon may temporarily appear in the notification area
- The module will start executing its functionality
Automatic Module Management
The host application automatically manages the module lifecycle:
- Loading: When the application starts, the host scans the
modulesfolder and loads all enabled modules - Initialization: For each enabled module, the
Initmethod is called with a logger instance passed - Language Setting: The current interface language is passed to the module via the
SetLanguagemethod - Shutdown: When the application closes, the
Shutdownmethod is called for each module to properly release resources
Troubleshooting
If the module does not load, check the following possible causes:
- Incorrect file name: Ensure the DLL file has the same name as the module folder
- Missing dependencies: Check that all required DLL files are copied to the module folder
- Incompatible API version: Ensure the module implements the correct API interface version
- Implementation errors: Verify that
ModuleInfoandModuleControllerclasses correctly implement interfaces - Permission issues: Ensure the application has read permissions for files in the module folder
For diagnostics, check the application logs where detailed error messages about module loading may be indicated.
Recommendations
- Always back up important data before installing new modules
- Test modules in an isolated environment before using them in production
- Keep track of module and host application updates to ensure compatibility
- Use unique names for modules to avoid conflicts
- Document installed modules and their versions for easier management