示例#1
0
        public static void SwithEnginesEnabled(int serviceId, bool enabled)
        {
            HeliconZoo zooServer = new HeliconZoo();

            ServiceProviderProxy.Init(zooServer, serviceId);
            zooServer.SwithEnginesEnabled(enabled);
        }
示例#2
0
        public static void SetWebCosoleEnabled(int serviceId, bool enabled)
        {
            HeliconZoo zooServer = new HeliconZoo();

            ServiceProviderProxy.Init(zooServer, serviceId);
            zooServer.SetWebCosoleEnabled(enabled);
        }
示例#3
0
        public static bool IsEnginesEnabled(int serviceId)
        {
            HeliconZoo zooServer = new HeliconZoo();

            ServiceProviderProxy.Init(zooServer, serviceId);
            return(zooServer.IsEnginesEnabled());
        }
示例#4
0
        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);
        }
示例#6
0
        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);
        }
示例#7
0
        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);
        }
示例#8
0
        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 void SwithEnginesEnabled(int serviceId, bool enabled)
 {
     HeliconZoo zooServer = new HeliconZoo();
     ServiceProviderProxy.Init(zooServer, serviceId);
     zooServer.SwithEnginesEnabled(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 SetWebCosoleEnabled(int serviceId, bool enabled)
 {
     HeliconZoo zooServer = new HeliconZoo();
     ServiceProviderProxy.Init(zooServer, serviceId);
     zooServer.SetWebCosoleEnabled(enabled);
 }
        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;
        }