public static void SwithEnginesEnabled(int serviceId, bool enabled) { HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); zooServer.SwithEnginesEnabled(enabled); }
public static void SetWebCosoleEnabled(int serviceId, bool enabled) { HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); zooServer.SetWebCosoleEnabled(enabled); }
public static bool IsEnginesEnabled(int serviceId) { HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); return(zooServer.IsEnginesEnabled()); }
public static HeliconZooEngine[] GetEngines(int serviceId) { HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); return(zooServer.GetEngines()); }
public static void SetEngines(int serviceId, HeliconZooEngine[] userEngines) { // update applicationHost.config HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); zooServer.SetEngines(userEngines); // update Helicon Zoo quotas in Quotas table UpdateQuotas(serviceId, userEngines); }
public static void SetEnabledEnginesForSite(string siteId, int packageId, string[] engines) { int serviceId = GetHeliconZooServiceIdByPackageId(packageId); // tell Server to enable engines for site HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); zooServer.SetEnabledEnginesForSite(siteId, engines); }
public static string[] GetEnabledEnginesForSite(string siteId, int packageId) { int serviceId = GetHeliconZooServiceIdByPackageId(packageId); if (-1 == serviceId) { // Helicon Zoo is not enabled for this package return(new string[0]); } // ask Server to enabled engines for site HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); string[] enabledEngines = zooServer.GetEnabledEnginesForSite(siteId); return(enabledEngines); }
public static bool IsEnginesEnabled(int serviceId) { HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); return zooServer.IsEnginesEnabled(); }
public static HeliconZooEngine[] GetEngines(int serviceId) { HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); return zooServer.GetEngines(); }
public static string[] GetEnabledEnginesForSite(string siteId, int packageId) { int serviceId = GetHeliconZooServiceIdByPackageId(packageId); if (-1 == serviceId) { // Helicon Zoo is not enabled for this package return new string[0]; } // ask Server to enabled engines for site HeliconZoo zooServer = new HeliconZoo(); ServiceProviderProxy.Init(zooServer, serviceId); string[] enabledEngines = zooServer.GetEnabledEnginesForSite(siteId); return enabledEngines; }