コード例 #1
0
 /// <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));
 }
コード例 #2
0
ファイル: T4ToolboxPackage.cs プロジェクト: pushpay/T4Toolbox
        /// <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));
        }