public override void Install()
        {
            //set owin startup
            SetOwinStartup(true);

            //set suite install
            SetSuiteInstall(true);

            //save the settings
            var suiteSettings = new MobSocialSuiteSettings()
            {
                WebInterfaceEnabled = true
            };

            _settingService.SaveSetting(suiteSettings);

            var webApiPlugin = ChildPluginInstances.GetPluginInsance <MobSocialWebApiPlugin>();

            webApiPlugin.Install();

            var mobSocialPlugin = ChildPluginInstances.GetPluginInsance <mobSocialPlugin>();

            mobSocialPlugin.Install();
            base.Install();
        }
        public void GetDisplayWidgetRoute(string widgetZone, out string actionName, out string controllerName,
                                          out RouteValueDictionary routeValues)
        {
            var mobSocialPlugin = ChildPluginInstances.GetPluginInsance <mobSocialPlugin>();

            mobSocialPlugin.GetDisplayWidgetRoute(widgetZone, out actionName, out controllerName, out routeValues);
        }
        public void ManageSiteMap(SiteMapNode rootNode)
        {
            var webApiPlugin = ChildPluginInstances.GetPluginInsance <MobSocialWebApiPlugin>();

            webApiPlugin.ManageSiteMap(rootNode);

            if (_mobSocialSuiteSettings.WebInterfaceEnabled)
            {
                var mobSocialPlugin = ChildPluginInstances.GetPluginInsance <mobSocialPlugin>();
                mobSocialPlugin.ManageSiteMap(rootNode);
            }
        }
        public override void Uninstall()
        {
            //reset owin in web.config
            SetOwinStartup(false);

            //delete settings
            _settingService.DeleteSetting <MobSocialSuiteSettings>();

            var webApiPlugin = ChildPluginInstances.GetPluginInsance <MobSocialWebApiPlugin>();

            webApiPlugin.Uninstall();

            var mobSocialPlugin = ChildPluginInstances.GetPluginInsance <mobSocialPlugin>();

            mobSocialPlugin.Uninstall();

            //reset suite install
            SetSuiteInstall(false);
            base.Uninstall();
        }
        public IList <string> GetWidgetZones()
        {
            var mobSocialPlugin = ChildPluginInstances.GetPluginInsance <mobSocialPlugin>();

            return(mobSocialPlugin.GetWidgetZones());
        }