Exemple #1
0
 public void SetAccessControl(SemaphoreSecurity semaphoreSecurity)
 {
     if (semaphoreSecurity == null)
     {
         throw new ArgumentNullException("semaphoreSecurity");
     }
     semaphoreSecurity.Persist(base.SafeWaitHandle);
 }
Exemple #2
0
        public static void SetAccessControl(this Semaphore semaphore, SemaphoreSecurity semaphoreSecurity)
        {
            if (semaphoreSecurity == null)
            {
                throw new ArgumentNullException(nameof(semaphoreSecurity));
            }

            semaphoreSecurity.Persist(semaphore.GetSafeWaitHandle());
        }
Exemple #3
0
        public static void SetAccessControl(this Semaphore semaphore, SemaphoreSecurity semaphoreSecurity)
        {
            ArgumentNullException.ThrowIfNull(semaphoreSecurity);

            semaphoreSecurity.Persist(semaphore.GetSafeWaitHandle());
        }