public void ObserverHandler(ObserverMessage msg) { StreamWriter sw = new StreamWriter(Directory.GetCurrentDirectory() + "/log-output.txt"); sw.Write("Error (" + msg.message + ")"); sw.Close(); }
public void ObserverHandler(ObserverMessage msg) { Console.WriteLine("Error (" + msg.message + ")"); }
static public void sendMessage(ObserverMessage src) { _observer(src); }