コード例 #1
0
        /// <inheritdoc/>
        protected override Provider VisitLock(LockProvider provider)
        {
            OnRecursionEntrance(provider);
            var source = VisitCompilable(provider.Source);

            OnRecursionExit(provider);
            if (source == provider.Source)
            {
                return(provider);
            }
            return(new LockProvider(source, provider.LockMode, provider.LockBehavior));
        }
コード例 #2
0
 /// <summary>
 /// Visits the <see cref="LockProvider"/>.
 /// </summary>
 /// <param name="provider">Lock provider.</param>
 /// <returns></returns>
 protected abstract Provider VisitLock(LockProvider provider);