Beispiel #1
0
        /// <summary>
        /// Creates a LockScope (shared).
        /// </summary>
        /// <returns>The shared LockScope.</returns>
        public static LockScope CreateSharedLockScope()
        {
            var lockScope = new LockScope();

            lockScope.Item = new Shared();
            return(lockScope);
        }
Beispiel #2
0
        /// <summary>
        /// Creates a LockScope (exclusive).
        /// </summary>
        /// <returns>The exclusive Lockscope.</returns>
        public static LockScope CreateExclusiveLockScope()
        {
            var lockScope = new LockScope();

            lockScope.Item = new Exclusive();
            return(lockScope);
        }