To define an addin, you must implement IDT_Extensibility2, which is a dual interface object.
The IDTExtensibility2 interface contains methods that the development environment calls when it connects to the addin, whether through the Add-In Manager, or elsewise. IDT_Extensibility2's methods appear on the Methods list in this topic.