Exemple #1
0
        /// <summary>
        /// Convenience method to set the current repeat operation to complete if it exists.
        /// </summary>
        public static void SetCompleteOnly()
        {
            IRepeatContext context = GetContext();

            if (context != null)
            {
                context.SetCompleteOnly();
            }
        }
Exemple #2
0
        /// <summary>
        /// Set current session and all ancestors (via parent) to complete.,
        /// </summary>
        public static void SetAncestorsCompleteOnly()
        {
            IRepeatContext context = GetContext();

            while (context != null)
            {
                context.SetCompleteOnly();
                context = context.Parent;
            }
        }