public void SetAccessControl(SemaphoreSecurity semaphoreSecurity) { if (semaphoreSecurity == null) { throw new ArgumentNullException("semaphoreSecurity"); } semaphoreSecurity.Persist(base.SafeWaitHandle); }
public static void SetAccessControl(this Semaphore semaphore, SemaphoreSecurity semaphoreSecurity) { if (semaphoreSecurity == null) { throw new ArgumentNullException(nameof(semaphoreSecurity)); } semaphoreSecurity.Persist(semaphore.GetSafeWaitHandle()); }
public static void SetAccessControl(this Semaphore semaphore, SemaphoreSecurity semaphoreSecurity) { ArgumentNullException.ThrowIfNull(semaphoreSecurity); semaphoreSecurity.Persist(semaphore.GetSafeWaitHandle()); }