NotificationHandler is abstract method now
[StratumLibrary.git] / StratumLibrary / Stratum.cs
index d023f6a..9ce8935 100644 (file)
@@ -10,7 +10,7 @@ using System.Collections.Generic;
 \r
 namespace Stratum\r
 {\r
-    public class Stratum\r
+    public abstract class Stratum\r
     {\r
         private Socket client;\r
 \r
@@ -248,14 +248,11 @@ namespace Stratum
         }\r
 \r
         /// <summary>\r
-        /// Notifications stub which is run in a separate thread. If you wish to implement real notification processing then just override this method in the derived class.\r
+        /// Notifications stub which is run in a separate thread. You need to override this method in the derived class.\r
         /// </summary>\r
         /// <param name="NotificationMethod">Method name</param>\r
         /// <param name="NotificationData">Array of values</param>\r
-        private static void NotificationHandler(string NotificationMethod, JArray NotificationData)\r
-        {\r
-            Console.WriteLine("\nNotification: Method={0}, data={1}", NotificationMethod, NotificationData.ToString());\r
-        }\r
+               public abstract void NotificationHandler (string NotificationMethod, JArray NotificationData);\r
     }\r
 \r
 }
\ No newline at end of file