Пример #1
0
 /// <summary>
 /// Get the QoS policy ID for the given QoS policy class.
 /// </summary>
 /// <param name="policyClass"></param>
 /// <param name="bootstrap">Identifies the Service instance to which the object will belong</param>
 /// <returns></returns>
 public static QosPolicyId GetId(System.Type policyClass, Bootstrap bootstrap)
 {
     return bootstrap.GetSPI().GetQosPolicyId(policyClass);
 }
Пример #2
0
        // -----------------------------------------------------------------------
        // Factory Methods
        // -----------------------------------------------------------------------

        /// <summary>
        /// 
        /// </summary>
        /// <param name="bootstrap">Identifies the Service instance to which the new object will belong</param>
        /// <returns></returns>
        public static GuardCondition NewGuardCondition(Bootstrap bootstrap)
        {
            return bootstrap.GetSPI().NewGuardCondition();
        }