// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
using System.Runtime.InteropServices;
using System.Security.Principal;
[ComVisible (false)]
public sealed class SemaphoreAccessRule : AccessRule
{
- SemaphoreRights semaphoreRights;
-
public SemaphoreAccessRule (IdentityReference identity,
- SemaphoreRights semaphoreRights,
+ SemaphoreRights eventRights,
AccessControlType type)
+ : base (identity, (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, type)
{
- this.semaphoreRights = semaphoreRights;
}
public SemaphoreAccessRule (string identity,
- SemaphoreRights semaphoreRights,
+ SemaphoreRights eventRights,
AccessControlType type)
+ : this (new NTAccount (identity), eventRights, type)
{
- this.semaphoreRights = semaphoreRights;
}
public SemaphoreRights SemaphoreRights
{
- get {
- return(semaphoreRights);
- }
+ get { return (SemaphoreRights)AccessMask; }
}
}
}
-#endif