Creating a VS Service with VSIPFactory
Before focusing on the creation of a VS Service with VSIPFactory, some little background:
- A VS Service is a contract between two VSPackages. One VSPackage offers a specific set of interfaces for another VSPackage to consume.
- A VS Service needs to be registered with VS, after we register it we can start consuming it
- Some useful pointers:
Now the steps to create a Service with VSIPFactory:
-
Enable VSIPFactory
- Right click on the VSPackage Project
- Choose VSIPFactory\Create\VS Service
- Specify the Service Name
- Provide the contract definition on the generated IService interface
- Provide the contract implementation on the generated service class
- Thats all :)
Pablo