Example: Custom assembly that is not in the GAC
- Last UpdatedOct 23, 2024
- 1 minute read
This example illustrates how a custom assembly that is not in the GAC can be configured as a hook and invoked when executing a standard stored procedure in the MES middleware.
The following example configuration is added to the Middleware Configuration Editor.
|
Middleware SP Name |
Pre-Hook Name |
Pre-Hook Type |
Middleware Flow |
|---|---|---|---|
|
sp_I_UOM |
C:\Temp\TestHooks\TestHooks\bin\ |
ASSEMBLY |
STOP ON ERROR |
The configuration in the pre-hook name can be interpreted as below:
Assembly Name/DLL Name: TestHooks.dll
Namespace: TestHooksNamespace
Class Name: TestHooksClass
Method Name: TestHooksMethod