public static async ValueTask <LockingEnumerator <T> > GetAsync(IHasLockObject objMyParent) { await objMyParent.LockObject.EnterReadLockAsync(); return(new LockingEnumerator <T>(objMyParent)); }
private LockingEnumerator(IHasLockObject objMyParent) { _objMyParent = objMyParent; }
public LockingDictionaryEnumerator(IHasLockObject objMyParent) { _objMyParent = objMyParent; _objMyParent.LockObject.EnterReadLock(); }
public static LockingEnumerator <T> Get(IHasLockObject objMyParent) { objMyParent.LockObject.EnterReadLock(); return(new LockingEnumerator <T>(objMyParent)); }
private LockingDictionaryEnumerator(IHasLockObject objMyParent) { _objMyParent = objMyParent; }
public static LockingDictionaryEnumerator Get(IHasLockObject objMyParent) { objMyParent.LockObject.EnterReadLock(); return(new LockingDictionaryEnumerator(objMyParent)); }
public static ValueTask <EnterReadLock> EnterAsync(IHasLockObject rwlMyLockCarrier, CancellationToken token = default) { AsyncFriendlyReaderWriterLock rwlMyLock = rwlMyLockCarrier.LockObject; return(EnterAsync(rwlMyLock, token)); }
public static async ValueTask <LockingEnumerator <T> > GetAsync(IHasLockObject objMyParent, CancellationToken token = default) { await objMyParent.LockObject.EnterReadLockAsync(token); return(new LockingEnumerator <T>(objMyParent)); }
public static LockingEnumerator <T> Get(IHasLockObject objMyParent, CancellationToken token = default) { objMyParent.LockObject.EnterReadLock(token); return(new LockingEnumerator <T>(objMyParent)); }