AsyncPackage::AddService Method (Type^, AsyncServiceCreatorWithProgressCallback^)
Visual Studio 2015
Adds an async service to this package. This service is not visible outside this package.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: virtual void AddService( Type^ serviceType, AsyncServiceCreatorWithProgressCallback^ callback ) sealed
Parameters
- serviceType
-
Type:
System::Type^
The type of the service to get.
- callback
-
Type:
Microsoft.VisualStudio.Shell::AsyncServiceCreatorWithProgressCallback^
The creation callback to be invoked when an instance of the service is needed. This is invoked only one time, and the result is cached.
Show: