/*protected virtual void OnMessageReceived(string message) {
         *  var handler = messageReceivedHandler;
         *  if (handler != null)
         *      handler(this, message);
         * }*/

        protected virtual void OnMessageReceived(MessageReseivedEventArgs e)
        {
            var handler = messageReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 //internal static void MessageEventHandler(object sender, string message) {
 internal static void MessageEventHandler(object sender, MessageReseivedEventArgs e)
 {
     //Console.WriteLine($"Printer. sender: {sender}, message: {message}");
     Console.WriteLine($"Printer. sender: {sender}, message: {e.Message}");
 }