public OwpBotManager() { var funcName = "OwpBotManager ()"; StLog.DebugWriteLine ("Erstelle den Telegram Bot", funcName); _bot = new TelegramBot (); StLog.DebugWriteLine ("Starte den ASCII Server", funcName); _owpAsciiServer = new OPENwebAsciiServer (); _owpAsciiServer.NewMessage += TcpMessageReceived; _server = new TcpLib.TcpServer (_owpAsciiServer, 10000); while (!_server.Start ()) System.Threading.Thread.Sleep (1000); }
public override object Clone() { var opwas = new OPENwebAsciiServer (); opwas.NewMessage = NewMessage; return opwas; }