Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Manufacturing Execution System 2023 R2

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,
processorarchitecture=
MSIL,PublicKeyToken=23116d86e706d0ae;TestHooksNamespace.TestHooksClass;
TestHooksMethod

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

TitleResults for “How to create a CRG?”Also Available in