Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
C# Http CallBack Script
sp_NewPost Add Reply sp_NewTopic Add Topic
May 25, 2021
5:41 pm
Henk Helmantel
Admin
Forum Posts: 1511
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Adam,

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

using System.Data;
using System.Data.Odbc;

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.

Regards, Henk

May 25, 2021
11:41 am
Adam
Guest
Guests

Hello Henk,

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.

Many Thanks

Stay Safe

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 680

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1156

Posts: 3946

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1511