コード例 #1
0
            internal InternalCustomRoLockedResource <StringBuilderCustomVault> PerformRoLockBlockForever()
            {
                var ilr = ExecuteGetInternalLockedResourceBlockForever(AcquisitionMode.ReadOnly);

                try
                {
                    return(InternalCustomRoLockedResource <StringBuilderCustomVault> .CreateRoLockedResource(ref ilr,
                                                                                                             this));
                }
                finally
                {
                    ilr.Dispose();
                }
            }
コード例 #2
0
            internal InternalCustomRoLockedResource <StringBuilderCustomVault> PerformRoLock(TimeSpan?timeout,
                                                                                             CancellationToken token)
            {
                var ilr = ExecuteGetInternalLockedResource(timeout, token, AcquisitionMode.ReadOnly);

                try
                {
                    return(InternalCustomRoLockedResource <StringBuilderCustomVault> .CreateRoLockedResource(ref ilr,
                                                                                                             this));
                }
                finally
                {
                    ilr.Dispose();
                }
            }