HotDocs API must not be used during a plug-in's initialization. Plug-ins must wait until HotDocs is itself fully initialized (e.g. after all the plugins have loaded) before calling its APIs, or it risks leaving HotDocs running (hidden) after the user closes it.
This function is called when HotDocs starts up to determine if it should load the plug-in. If the function fails, HotDocs will not load the plug-in.
When HotDocs calls this function, it has not completely loaded its COM DLLs, which means you cannot call HotDocs COM interfaces in this function. Instead, you can call those interfaces in LibraryInitialized, which HotDocs calls after they are made available.
void Initialize( )
public void Initialize() { }