I need to know which class of CRM 2011 calls the plug-in installed on.
I'm new to plug-ins but I think each call to them, uses the same process. I need to make them to work on a different instance .
Let me introduce an example. I have an implementation of IPlugin
class with a member called _log
.
public class Plugin : IPlugin {
private static String _log;
}
So, if I have asynchronous plug-in, each time plug triggers, I should have new object, right? When I watch the log file, I notice that in the same log there's more than one process of the plug-in. Example: "Log-> obj1.method_1, obj2.method_1" It's like there's only one instance for the class plug-in and each time the plug-in triggers, it just calls the Execute()
method with a different serviceProvider parameter. It's that possible? Any idea?