You can add the reference DLL's in a comment line at the top of the script. For MySQL you can use the standard ODBC library of dotNET like this:
// AddReference System.Data.dll
In the Scripting Pack that you can download from the download page of this website you can find an example of a script that uses the ODBC library. This script is called '\ConnectorScripts\DatabaseQuery\ODBCKeywordLookup.cs'. It is meant for the Scripting Connector and won't work for the HTTP callbacks but the reference DLL calls are the same.
If you use an external database in the C# Http CallBack Script, you'll have to make sure that the database calls are fast enough. The gateway or connector is blocked during the database call and if the database transactions are slow it will have a negative effect on the performance of the gateway or connector.
Been a long time, hope this msg will find you well,
We are now going to buy the third company of Diaffan, for our third SMS project.
Hence I have a question, this time we are planning to use C# Http CallBack Script, so we have done some small test and we use reference for example Mysql as below :
But when we complied the script its showing an error :
The type or namespacename MySql could not be found ....etc,
So are we able to use any reference for our internal code ? and if yes how we can add the DLL to Diafaan
Waiting for your reply ASAP.
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 611
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1299