Example: Custom assembly is added to the GAC
- Last UpdatedOct 23, 2024
- 1 minute read
This example illustrates how a custom assembly that has been added to the GAC can be configured as a hook and invoked when executing a standard stored procedure in the MES middleware. The expectation is that the assembly is signed with a strong-name.
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 |
TestHooks,version=1.0.0.0,culture=neutral, |
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