X-Git-Url: https://git.novaco.in/?p=StratumLibrary.git;a=blobdiff_plain;f=StratumLibrary%2FStratum.cs;fp=StratumLibrary%2FStratum.cs;h=9ce89358016111e915a3c4b71f844deb5e327599;hp=d023f6a37e20e12e5c24e7482ceb855cf910e7cf;hb=81321f81c932ab7af82b75aa8d71cda76094cf5e;hpb=55200868e7cddf7349277410d04d997d6f75a55d
diff --git a/StratumLibrary/Stratum.cs b/StratumLibrary/Stratum.cs
index d023f6a..9ce8935 100644
--- a/StratumLibrary/Stratum.cs
+++ b/StratumLibrary/Stratum.cs
@@ -10,7 +10,7 @@ using System.Collections.Generic;
namespace Stratum
{
- public class Stratum
+ public abstract class Stratum
{
private Socket client;
@@ -248,14 +248,11 @@ namespace Stratum
}
///
- /// 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.
+ /// Notifications stub which is run in a separate thread. You need to override this method in the derived class.
///
/// Method name
/// Array of values
- private static void NotificationHandler(string NotificationMethod, JArray NotificationData)
- {
- Console.WriteLine("\nNotification: Method={0}, data={1}", NotificationMethod, NotificationData.ToString());
- }
+ public abstract void NotificationHandler (string NotificationMethod, JArray NotificationData);
}
}
\ No newline at end of file