Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Quick question about class instantiation...

Does the plugin class get instantiated for each request or just once when it's first instantiated?

I guess more specifically can I use or depend on instance variables for or in a user session or not.

Thanks.
Martin Zardecki Send private email
Thursday, June 18, 2009
 
 
NM, answered my own question...can't use instance variables.
Martin Zardecki Send private email
Thursday, June 18, 2009
 
 
As you discovered, plugin objects are instantiated per-request.  You can depend on instance variables within a single request, but not across multiple requests.
David Fullerton Send private email
Tuesday, June 23, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz