示例#1
0
 private void RegisterProtocolProvider(IServiceProvider provider, IExtensibilityManager extensibilityManager)
 {
     extensibilityManager.RegisterExtension(
         typeof(IHomepageTaskListProvider),
         new ManageHostsHomepageTaskListProvider(this)
         );
 }
示例#2
0
        protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo)
        {
            base.Initialize(serviceProvider, moduleInfo);

            IExtensibilityManager extensibilityManager = (IExtensibilityManager)GetService(typeof(IExtensibilityManager));

            extensibilityManager.RegisterExtension(typeof(RewriteTemplateFeature), new CanonicalDomainFeature(this));
        }
        protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo)
        {
            base.Initialize(serviceProvider, moduleInfo);

            ServiceProvider = serviceProvider;
            Connection      = (Connection)GetService(typeof(Connection));
            // Register UI elements
            var controlPanel = (IControlPanel)GetService(typeof(IControlPanel));

            controlPanel.RegisterPage(new ModulePageInfo(this, typeof(BpmOnlineConfigUIPage),
                                                         "Bpm'online", "Configuration of the bpm'online web site"));
            IExtensibilityManager extensibilityManager = (IExtensibilityManager)serviceProvider.GetService(typeof(IExtensibilityManager));

            if (extensibilityManager != null)
            {
                var homePageExtention = new BpmOnlineConfigHomepageExtension(this);
                extensibilityManager.RegisterExtension(typeof(IHomepageTaskListProvider), homePageExtention);
                var hierarchyProvider = new BpmOnlineConfigHierarchyProvider(this);
                extensibilityManager.RegisterExtension(typeof(HierarchyProvider), (object)hierarchyProvider);
            }
        }