Integrate
Create a Custom Assembly
A developer creates an assembly that is used by the Custom template when posting.
To create the assembly:
- Create a new Class Library Project in Visual Studio targeting .NET Framework 4.0.
-
Add the following project reference to the project:
- Create a new class that implements the CranSoft.DSP.Integrate IProcessTemplate Interface and CranSoft.DSP.Integrate.CustomProcesstemplate. Right-click the IProcessTemplate Interface and select Implement Interface.
-
Create a constructor that takes in a parameter of type CustomPostParameter. The CustomPostParameter has the properties “Host“ which is the Plugin Service host, and “IntegrateDataRowContract” which provides enough information to implement the execution of a custom template.
NOTE: The constructor must call the base constructor and pass in the CustomPostParameter.Host.
- Add an implementation for each of the properties and methods of the Interface.
- Build Project.
- Take note of the full class name (Namespace + Class Name), for example, SampleProcessTemplate.SampleProcessTemplate.
- Take note of the assembly name that contains the CustomProcessTemplate class, for example SampleProcessTemplate.dll.
Continue with Copy the Assembly File to the Integrate Process Folder.