EventWaitHandleSecurity.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. //
  2. // System.Security.AccessControl.EventWaitHandleSecurity implementation
  3. //
  4. // Authors:
  5. // Dick Porter <[email protected]>
  6. // Atsushi Enomoto <[email protected]>
  7. //
  8. // Copyright (C) 2005-2007 Novell, Inc (http://www.novell.com)
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. using System.Security.Principal;
  30. namespace System.Security.AccessControl
  31. {
  32. public sealed class EventWaitHandleSecurity : NativeObjectSecurity
  33. {
  34. public EventWaitHandleSecurity ()
  35. {
  36. throw new NotImplementedException ();
  37. }
  38. public override Type AccessRightType {
  39. get { return typeof (EventWaitHandleRights); }
  40. }
  41. public override Type AccessRuleType {
  42. get { return typeof (EventWaitHandleAccessRule); }
  43. }
  44. public override Type AuditRuleType {
  45. get { return typeof (EventWaitHandleAuditRule); }
  46. }
  47. // AccessRule
  48. public override AccessRule AccessRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
  49. {
  50. return new EventWaitHandleAccessRule (identityReference, (EventWaitHandleRights) accessMask, type);
  51. }
  52. [MonoTODO]
  53. public void AddAccessRule (EventWaitHandleAccessRule rule)
  54. {
  55. throw new NotImplementedException ();
  56. }
  57. [MonoTODO]
  58. public bool RemoveAccessRule (EventWaitHandleAccessRule rule)
  59. {
  60. throw new NotImplementedException ();
  61. }
  62. [MonoTODO]
  63. public void RemoveAccessRuleAll (EventWaitHandleAccessRule rule)
  64. {
  65. throw new NotImplementedException ();
  66. }
  67. [MonoTODO]
  68. public void RemoveAccessRuleSpecific (EventWaitHandleAccessRule rule)
  69. {
  70. throw new NotImplementedException ();
  71. }
  72. [MonoTODO]
  73. public void ResetAccessRule (EventWaitHandleAccessRule rule)
  74. {
  75. throw new NotImplementedException ();
  76. }
  77. [MonoTODO]
  78. public void SetAccessRule (EventWaitHandleAccessRule rule)
  79. {
  80. throw new NotImplementedException ();
  81. }
  82. // AuditRule
  83. public override AuditRule AuditRuleFactory (IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
  84. {
  85. return new EventWaitHandleAuditRule (identityReference, (EventWaitHandleRights) accessMask, flags);
  86. }
  87. [MonoTODO]
  88. public void AddAuditRule (EventWaitHandleAuditRule rule)
  89. {
  90. throw new NotImplementedException ();
  91. }
  92. [MonoTODO]
  93. public bool RemoveAuditRule (EventWaitHandleAuditRule rule)
  94. {
  95. throw new NotImplementedException ();
  96. }
  97. [MonoTODO]
  98. public void RemoveAuditRuleAll (EventWaitHandleAuditRule rule)
  99. {
  100. throw new NotImplementedException ();
  101. }
  102. [MonoTODO]
  103. public void RemoveAuditRuleSpecific (EventWaitHandleAuditRule rule)
  104. {
  105. throw new NotImplementedException ();
  106. }
  107. [MonoTODO]
  108. public void SetAuditRule (EventWaitHandleAuditRule rule)
  109. {
  110. throw new NotImplementedException ();
  111. }
  112. }
  113. }