X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Security.AccessControl%2FEventWaitHandleAuditRule.cs;h=8503546568d3b7350e56cb2477c484cc1029543f;hb=29d229377d09a9ac571cbc2933f8a3ce4f83f7b0;hp=dde548a03f4e98896e48bc59d677110644fd4238;hpb=04d1b4116331e3813b8f75304f714a5d61ba1214;p=mono.git diff --git a/mcs/class/corlib/System.Security.AccessControl/EventWaitHandleAuditRule.cs b/mcs/class/corlib/System.Security.AccessControl/EventWaitHandleAuditRule.cs index dde548a03f4..8503546568d 100644 --- a/mcs/class/corlib/System.Security.AccessControl/EventWaitHandleAuditRule.cs +++ b/mcs/class/corlib/System.Security.AccessControl/EventWaitHandleAuditRule.cs @@ -1,10 +1,11 @@ // // System.Security.AccessControl.EventWaitHandleAuditRule implementation // -// Author: +// Authors: // Dick Porter +// Atsushi Enomoto // -// Copyright (C) 2006 Novell, Inc (http://www.novell.com) +// Copyright (C) 2006-2007 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -26,50 +27,26 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -#if NET_2_0 - using System.Security.Principal; -namespace System.Security.AccessControl { +namespace System.Security.AccessControl +{ public sealed class EventWaitHandleAuditRule : AuditRule { - EventWaitHandleRights eventRights; - public EventWaitHandleAuditRule (IdentityReference identity, EventWaitHandleRights eventRights, AuditFlags flags) + : base (identity, (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, flags) { if (eventRights < EventWaitHandleRights.Modify || eventRights > EventWaitHandleRights.FullControl) { throw new ArgumentOutOfRangeException ("eventRights"); } - if (flags < AuditFlags.None || - flags > AuditFlags.Failure) { - throw new ArgumentOutOfRangeException ("flags"); - } - if (identity == null) { - throw new ArgumentNullException ("identity"); - } - if (eventRights == 0) { - throw new ArgumentNullException ("eventRights"); - } - if (flags == AuditFlags.None) { - throw new ArgumentException ("flags"); - } - if (!(identity is SecurityIdentifier)) { - throw new ArgumentException ("identity"); - } - - this.eventRights = eventRights; } - public EventWaitHandleRights EventWaitHandleRights - { - get { - return(eventRights); - } + public EventWaitHandleRights EventWaitHandleRights { + get { return (EventWaitHandleRights)AccessMask; } } } } -#endif