当前位置: 首页>>代码示例>>C#>>正文


C# Host.IsFloodgateOrLater方法代码示例

本文整理汇总了C#中XenAPI.Host.IsFloodgateOrLater方法的典型用法代码示例。如果您正苦于以下问题:C# Host.IsFloodgateOrLater方法的具体用法?C# Host.IsFloodgateOrLater怎么用?C# Host.IsFloodgateOrLater使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XenAPI.Host的用法示例。


在下文中一共展示了Host.IsFloodgateOrLater方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CanActivate

 public static bool CanActivate(Host host)
 {
     //This check used to be "_expiresText != Messages.LICENSE_NEVER" but I've swapped it for
     //"!host.isOEM" according to the ticket CA-37336 where this 3rd part of the check was added
     //OEM licenses (< XS ver 5.5) have perpetual (2036) expiry dates
     return host.IsFreeLicense() && host.IsFloodgateOrLater() && !host.isOEM && !Helpers.ClearwaterOrGreater(host);
 }
开发者ID:agimofcarmen,项目名称:xenadmin,代码行数:7,代码来源:LicenseActivationRequest.cs

示例2: PaidHostFreeMaster

 private static bool PaidHostFreeMaster(Host slave, Host master)
 {
     return (slave.IsFloodgateOrLater() && master.IsFloodgateOrLater() &&
         !Host.RestrictHAFloodgate(slave) && Host.RestrictHAFloodgate(master));
 }
开发者ID:ChrisH4rding,项目名称:xenadmin,代码行数:5,代码来源:PoolJoinRules.cs

示例3: FreeHostPaidMaster

 public static bool FreeHostPaidMaster(Host slave, Host master, bool allowLicenseUpgrade)
 {
     if (slave != null && master != null &&
         slave.IsFloodgateOrLater() && master.IsFloodgateOrLater() &&
         Host.RestrictHAFloodgate(slave) && !Host.RestrictHAFloodgate(master))
     {
         // See http://scale.ad.xensource.com/confluence/display/engp/v6+licensing+for+XenServer+Essentials, req R21a.
         // That section implies that we should downgrade a paid host to join a free pool, but that can't be the intention
         // (confirmed by Carl Fischer). Carl's also not concerned about fixing up Enterprise/Platinum mismatches.
         if (allowLicenseUpgrade && Helpers.MidnightRideOrGreater(master))
             return false;
         return true;
     }
     return false;
 }
开发者ID:ChrisH4rding,项目名称:xenadmin,代码行数:15,代码来源:PoolJoinRules.cs

示例4: PaidHostFreeMaster

        private static bool PaidHostFreeMaster(Host slave, Host master)
        {
            if (slave == null || master == null)
                return false;

            // Is using per socket generation licenses?
            if (Helpers.ClearwaterOrGreater(slave) && Helpers.ClearwaterOrGreater(master))
                return !slave.IsFreeLicense() && master.IsFreeLicense();

            return (slave.IsFloodgateOrLater() && master.IsFloodgateOrLater() &&
                !Host.RestrictHAFloodgate(slave) && Host.RestrictHAFloodgate(master));
        }
开发者ID:agimofcarmen,项目名称:xenadmin,代码行数:12,代码来源:PoolJoinRules.cs


注:本文中的XenAPI.Host.IsFloodgateOrLater方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。