Dot Net Library

Dedicated forum for the visual 'drag and drop' voice application designer that allows easy creation of advanced voice applications without programming knowledge

Moderators: kevin, 3CX staff

Dot Net Library

Postby SWSDEV » Thu Aug 27, 2009 8:22 am

When you call to a .Net assembly, does the object you're instantiating have to have a constructor with no parameters?
Shahzad Qureshi
SWS Development - 3CX Certified Partner
Custom 3CX integration
Salt Lake City, UT USA
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 246
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: Dot Net Library

Postby VAD_Support » Thu Aug 27, 2009 4:54 pm

Yes, currently we need to create a new instance of the object (using a parameter less constructor), invoke the method on it, and let it be garbage collected.
If you need to reuse an object or create it using parameters, you may for example create a singleton which has a reference to it, and use the singleton as a proxy.
I'm pretty sure that in future versions of the VAD this feature will be added...
VAD_Support
3CX Valued Professional
3CX Valued Professional
 
Posts: 421
Joined: Thu Aug 06, 2009 5:29 pm


Return to 3CX Voice Application Designer (VAD)

Who is online

Users browsing this forum: No registered users and 0 guests