Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

Best Practices - Instance vs Singleton - by: davide

$
0
0
Good morning,
I would know what is the best way to get ​​values ​​using ReadMultipleItems:
- a parent method that each time recreate an EasyDAClient with its own EasyDAInstanceParameters and ServerDescriptor
- a parent method that each time calls an existing instance EasyDAClient (eventually a singleton) with its own EasyDAInstanceParameters and ServerDescriptor
Finally, in both cases, it is sufficient use dispose() to free resource and close correctly the connections? Otherwise how is it possible?
Thanks in advance,
Davide

Viewing all articles
Browse latest Browse all 1794

Trending Articles