Force plug-in load on rhino launch

I am building a plug-in for internal company use to do some custom analytics. I’ve successfully built the plug-in to log with our analytics package every time it is loaded (with code in my plug-in class constructor) but it seems to only execute when the plug-in is loaded on demand (such as when a command from the plug-in is called). Is there a way to ensure that a plug-in always loads every time Rhino launches? Or, as a hacky workaround, a way to call a command from the plug-in on launch? (ie programmatically adding a script to the “Script files to load when rhino starts”)

Any thoughts?

Answered my own question! For those wondering the same thing - just override LoadTime in your plugin class, similar to older example here: http://wiki.mcneel.com/developer/sdksamples/pluginloadtime

In general, loading plug-ins on-demand (when the user needs them) is preferred. This keeps Rhino loading fast. But it is possible to have plug-ins load when Rhino loads. Just override your plug-in’s PlugIn.LoadTime virtual accessor and return PlugInLoadTime.AtStartup.