Plugin Main Entry Point

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Hi,

i'm writing licensing checks in my plugin. My license system requires once a call to a Check Method which checks if my plugin is licensed or not.

My question are:

Where is the best (single) place in a plugin to place put the call to the Check (so early as possible)?
What is the Main Entry point of a plugin when it's loaded/called?

If there's no a single good solution to this, is maybe an idea to add an Initialize method to the IPlugin interface?

Regards
9 years ago
You could do it in your constructor (although it is possible that the constructor could be called multiple times)
9 years ago
Tnx for the reply.
unlucky the constructor is not a good  option, as you said it's called multiple times.
I really think that adding something like "Initialize" to the iplugin interface (and obviously called from the nop framework) could be an good option to solve problems like this.

What do you think?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.