protected void Trace(string msg)
 {
     DebugTrace?.Invoke(msg);
 }