Merge pull request #347 from JamesB7/master
[mono.git] / mcs / class / System / System.Diagnostics / NullEventLog.cs
index ea4aaca61b473cff1726bacecddb3f1d2844137f..d49aac371338da642ee155028adb24e21e3f7d92 100644 (file)
@@ -71,6 +71,14 @@ namespace System.Diagnostics
                {
                }
 
+               public override void DisableNotification ()
+               {
+               }
+
+               public override void EnableNotification ()
+               {
+               }
+
                public override void EndInit ()
                {
                }
@@ -118,5 +126,28 @@ namespace System.Diagnostics
                public override void WriteEntry (string [] replacementStrings, EventLogEntryType type, uint instanceID, short category, byte [] rawData)
                {
                }
+
+               public override OverflowAction OverflowAction {
+                       get { return OverflowAction.DoNotOverwrite; }
+               }
+
+               public override int MinimumRetentionDays {
+                       get { return int.MaxValue; }
+               }
+
+               public override long MaximumKilobytes {
+                       get { return long.MaxValue; }
+                       set { throw new NotSupportedException ("This EventLog implementation does not support setting max kilobytes policy"); }
+               }
+
+               public override void ModifyOverflowPolicy (OverflowAction action, int retentionDays)
+               {
+                       throw new NotSupportedException ("This EventLog implementation does not support modifying overflow policy");
+               }
+
+               public override void RegisterDisplayName (string resourceFile, long resourceId)
+               {
+                       throw new NotSupportedException ("This EventLog implementation does not support registering display name");
+               }
        }
 }