From 3cdb3e464292cfc6dbf63682b707274ee9bccba9 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Fri, 14 Aug 2015 21:11:43 +0300 Subject: [PATCH] Use main class as wrapper --- StratumTest/Program.cs | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/StratumTest/Program.cs b/StratumTest/Program.cs index 43b10ea..af105f0 100644 --- a/StratumTest/Program.cs +++ b/StratumTest/Program.cs @@ -6,21 +6,18 @@ namespace StratumTest using Stratum; using Newtonsoft.Json.Linq; - class StratumWrapper : Stratum - { - public StratumWrapper(string ipAddress, int port) : base(ipAddress, port) { } + class StratumTest : Stratum + { + public StratumTest(string ipAddress, int port) : base(ipAddress, port) { } - public override void NotificationHandler(string NotificationMethod, JArray NotificationData) - { - Console.WriteLine("\nNotification: Method={0}, data={1}", NotificationMethod, NotificationData.ToString()); - } - } + public override void NotificationHandler(string NotificationMethod, JArray NotificationData) + { + Console.WriteLine("\nNotification: Method={0}, data={1}", NotificationMethod, NotificationData.ToString()); + } - class StratumTest - { static void Main(string[] args) { - StratumWrapper s = new StratumWrapper("127.0.0.1", 40001); + StratumTest s = new StratumTest("192.168.1.100", 40001); while (true) { -- 1.7.1