Ejemplo n.º 1
0
 public void SetAccessControl(EventWaitHandleSecurity eventSecurity)
 {
     if (eventSecurity == null)
     {
         throw new ArgumentNullException("eventSecurity");
     }
     eventSecurity.Persist(this.safeWaitHandle);
 }
Ejemplo n.º 2
0
        public static void SetAccessControl(this EventWaitHandle handle, EventWaitHandleSecurity eventSecurity)
        {
            if (eventSecurity == null)
            {
                throw new ArgumentNullException(nameof(eventSecurity));
            }

            eventSecurity.Persist(handle.GetSafeWaitHandle());
        }
Ejemplo n.º 3
0
        [System.Security.SecuritySafeCritical]  // auto-generated
        public void SetAccessControl(EventWaitHandleSecurity eventSecurity)
        {
            if (eventSecurity == null)
            {
                throw new ArgumentNullException("eventSecurity");
            }
            Contract.EndContractBlock();

            eventSecurity.Persist(safeWaitHandle);
        }
Ejemplo n.º 4
0
        [System.Security.SecuritySafeCritical]  // auto-generated
        public static void SetAccessControl(this EventWaitHandle handle, EventWaitHandleSecurity eventSecurity)
        {
            if (eventSecurity == null)
            {
                throw new ArgumentNullException("eventSecurity");
            }
            Contract.EndContractBlock();

            eventSecurity.Persist(handle.GetSafeWaitHandle());
        }
Ejemplo n.º 5
0
        public static void SetAccessControl(this EventWaitHandle handle, EventWaitHandleSecurity eventSecurity)
        {
            ArgumentNullException.ThrowIfNull(eventSecurity);

            eventSecurity.Persist(handle.GetSafeWaitHandle());
        }