/// <summary> /// Displays information about the Server we are connected to. /// </summary> /// <param name="AServerManager">Instance of remote ServerManager</param> static void DisplayPetraServerInformation(IServerAdminInterface AServerManager) { int TotalConnectedClients; int CurrentlyConnectedClients; RetrieveConnectedClients(AServerManager, out TotalConnectedClients, out CurrentlyConnectedClients); TLogging.Log(AServerManager.ServerInfoVersion); TLogging.Log(Catalog.GetString("Configuration file: " + AServerManager.ConfigurationFileName)); TLogging.Log(" Clients connections since Server start: " + TotalConnectedClients.ToString()); TLogging.Log(" Clients currently connected: " + CurrentlyConnectedClients.ToString()); TLogging.Log(AServerManager.ServerInfoState); }
/// <summary> /// Displays information about the Server we are connected to. /// </summary> static void DisplayPetraServerInformation() { int TotalConnectedClients; int CurrentlyConnectedClients; RetrieveConnectedClients(out TotalConnectedClients, out CurrentlyConnectedClients); TLogging.Log(TRemote.GetServerInfoVersion()); TLogging.Log(Catalog.GetString("Configuration file: " + TAppSettingsManager.ConfigFileName)); TLogging.Log(" Clients connections since Server start: " + TotalConnectedClients.ToString()); TLogging.Log(" Clients currently connected: " + CurrentlyConnectedClients.ToString()); TLogging.Log(TRemote.GetServerInfoState()); }
/// <summary> /// Displays information about the Server we are connected to. /// </summary> static void DisplayPetraServerInformation() { int TotalConnectedClients; int CurrentlyConnectedClients; Int64 SiteKey; RetrieveConnectedClients(out TotalConnectedClients, out CurrentlyConnectedClients, out SiteKey); TLogging.Log(TRemote.GetServerInfoVersion()); TLogging.Log(Catalog.GetString("Configuration file: " + TAppSettingsManager.ConfigFileName)); TLogging.Log(" * Clients connections since Server start: " + TotalConnectedClients.ToString()); TLogging.Log(" * Clients currently connected: " + CurrentlyConnectedClients.ToString()); TLogging.Log(" * " + String.Format(Catalog.GetString("SiteKey of OpenPetra Installation: {0}{1}"), SiteKey, (SiteKey == 99000000) ? Catalog.GetString(" (SiteKey not yet set up)") : String.Empty)); TLogging.Log(TRemote.GetServerInfoState()); }