ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/TSAdminTool/TerminalServices.cs
(Generate patch)

Comparing trunk/TSAdminTool/TerminalServices.cs (file contents):
Revision 226 by william, Thu Aug 23 19:52:48 2012 UTC vs.
Revision 227 by william, Thu Aug 23 19:58:58 2012 UTC

# Line 792 | Line 792 | namespace AnywhereTS
792              foreach (AtsTerminalServer ts in AtsEnvironment.TerminalServers)
793              {
794                  Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::ts.networkPath={0}", ts.networkPath == null ? string.Empty : ts.networkPath);
795 <                Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::ts.Online={0}", ts.Online == null ? false : ts.Online);
795 >                Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::ts.Online={0}", ts.Online);
796                  Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::ts.Session.Count={0}", ts.Session == null ? 0 : ts.Session.Count);
797                  Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::ts.strError={0}", ts.strError == null ? string.Empty : ts.strError);
798                  foreach (AtsSession session in ts.Session)
# Line 800 | Line 800 | namespace AnywhereTS
800                      int session_index = ts.Session.IndexOf(session);
801  
802                      Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].TerminalServerName={1}", session_index, session.TerminalServerName == null ? string.Empty : session.TerminalServerName);
803 <                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].state={1}", session_index, session.state == null ? string.Empty : StateToString(session.state));
804 <                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].sessionID={1}", session_index, session.sessionID == null ? 0 : session.sessionID);
803 >                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].state={1}", session_index, StateToString(session.state));
804 >                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].sessionID={1}", session_index, session.sessionID);
805                      Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].name={1}", session_index, session.name == null ? string.Empty : session.name);
806                      Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].username={1}", session_index, session.username == null ? string.Empty : session.username);
807                      Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].ipAddress={1}", session_index, session.ipAddress == null ? string.Empty : session.ipAddress);
808                      Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].macAddress={1}", session_index, session.macAddress == null ? string.Empty : session.macAddress);
809 <                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].HorizontalResolution={1}", session_index, session.HorizontalResolution == null ? 0 : session.HorizontalResolution);
810 <                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].VerticalResolution={1}", session_index, session.VerticalResolution == null ? 0 : session.VerticalResolution);
811 <                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].ColorDepth={1}", session_index, session.ColorDepth == null ? 0 : session.ColorDepth);                    
809 >                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].HorizontalResolution={1}", session_index, session.HorizontalResolution);
810 >                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].VerticalResolution={1}", session_index, session.VerticalResolution);
811 >                    Logging.DefaultLog.DebugFormat("GetSession(string macAddress)::session[{0}].ColorDepth={1}", session_index, session.ColorDepth);                    
812  
813                      // Try to find the MAC adress for the selected client in any of the sessions.
814                      if (session.macAddress == macAddress)
# Line 848 | Line 848 | namespace AnywhereTS
848                  case WTS_CONNECTSTATE_CLASS.WTSInit:
849                      return "In initialization";
850                  default:
851 +                    Logging.DefaultLog.DebugFormat("StateToString(WTS_CONNECTSTATE_CLASS state)::Unknown Session State={0}", state.ToString());
852                      return "Unknown state (error!)";
853              }
854          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines