/// <summary> /// Registers services implemented by this package. /// </summary> protected override void Initialize() { base.Initialize(); TransformationContextProvider.Register(this); TemplateLocator.Register(this); this.extenderProviders.Add(new BrowseObjectExtenderProvider(this, PrjBrowseObjectCATID.prjCATIDCSharpFileBrowseObject)); this.extenderProviders.Add(new BrowseObjectExtenderProvider(this, PrjBrowseObjectCATID.prjCATIDVBFileBrowseObject)); }
/// <summary> /// Registers services implemented by this package. /// </summary> protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { Instance = this; await base.InitializeAsync(cancellationToken, progress); TransformationContextProvider.Register(this); TemplateLocator.Register(this); var objectExtenders = (ObjectExtenders)await this.GetServiceAsync(typeof(ObjectExtenders)); this.extenderProviders.Add(new BrowseObjectExtenderProvider(this, objectExtenders, PrjBrowseObjectCATID.prjCATIDCSharpFileBrowseObject)); this.extenderProviders.Add(new BrowseObjectExtenderProvider(this, objectExtenders, PrjBrowseObjectCATID.prjCATIDVBFileBrowseObject)); }