This is a sample project to see how the custom processing works in the .NET RESTful engine. In this sample, we are removing the data from the document, so when you get the document after processing, "Data" should be an empty byte array.
- Clone or download this repository
- Open the CustomProcessingSample solution in Microsoft Visual Studio
- Build the solution
- After building the solution navigate to the "obj/Debug" directory for the project, there you will find the "CustomProcessingSample.dll" file. Move this file to your RESTful Engine bin folder:
C:\inetpub\wwwroot\RESTfulEngine\bin
- Copy the path to the file
- Next we will add the following to our web.config file for the RESTful engine:
<appSettings>
<add key="postProcessor" value="C:\inetpub\wwwroot\RESTfulEngine\bin\CustomProcessingSample.dll!CustomProcessingSample.CustomProcessor" />
</appSetings>
- Now, start up your RESTful engine and run a report. When you get the report the "Data" will be empty
https://ohana.windwardstudios.com/m/79043/l/1453279-net-restful-engine-custom-processing