Removed the additions from the last revision for the "ShowHelp" delegate handling, as it seems that system isn't in use anymore.

GenericGridServerConcept
MW 2009-02-24 18:06:06 +00:00
parent 1e2835a10c
commit 8645fa9215
5 changed files with 1 additions and 41 deletions

View File

@ -30,14 +30,11 @@ using OpenSim.Framework.Servers;
namespace OpenSim.Grid.Framework
{
public delegate void ShowHelpDelegate(string[] helpArgs);
public interface IUGAIMCore
{
T Get<T>();
void RegisterInterface<T>(T iface);
bool TryGet<T>(out T iface);
BaseHttpServer GetHttpServer();
void RegisterConsoleHelpDelegate(ShowHelpDelegate showHelp);
}
}

View File

@ -255,11 +255,6 @@ namespace OpenSim.Grid.GridServer
{
return m_httpServer;
}
public void RegisterConsoleHelpDelegate(ShowHelpDelegate showHelp)
{
}
#endregion
}
}

View File

@ -245,11 +245,6 @@ namespace OpenSim.Grid.MessagingServer
{
return m_httpServer;
}
public void RegisterConsoleHelpDelegate(ShowHelpDelegate showHelp)
{
}
#endregion
}
}

View File

@ -204,8 +204,6 @@ namespace OpenSim.Grid.UserServer
#region IUGAIMCore
protected Dictionary<Type, object> m_moduleInterfaces = new Dictionary<Type, object>();
protected List<ShowHelpDelegate> m_showHelpDelegates = new List<ShowHelpDelegate>();
/// <summary>
/// Register an Module interface.
@ -244,13 +242,7 @@ namespace OpenSim.Grid.UserServer
return m_httpServer;
}
public void RegisterConsoleHelpDelegate(ShowHelpDelegate showHelp)
{
lock (m_showHelpDelegates)
{
m_showHelpDelegates.Add(showHelp);
}
}
#endregion
#region Console Command Handlers
@ -258,14 +250,6 @@ namespace OpenSim.Grid.UserServer
protected override void ShowHelp(string[] helpArgs)
{
base.ShowHelp(helpArgs);
lock (m_showHelpDelegates)
{
foreach (ShowHelpDelegate d in m_showHelpDelegates)
{
d(helpArgs);
}
}
}
#endregion

View File

@ -73,7 +73,6 @@ namespace OpenSim.Grid.UserServer
public void PostInitialise()
{
m_core.RegisterConsoleHelpDelegate(ShowHelp);
}
public void RegisterHandlers(BaseHttpServer httpServer)
@ -347,16 +346,6 @@ namespace OpenSim.Grid.UserServer
break;
}
}
public void ShowHelp(string[] helpArgs)
{
m_console.Notice("create user - create a new user");
m_console.Notice("logoff-user <firstname> <lastname> <message> - logs off the specified user from the grid");
m_console.Notice("reset user password - reset a user's password.");
m_console.Notice("login-level <value> - Set the miminim userlevel allowed To login.");
m_console.Notice("login-reset - reset the login level to its default value.");
m_console.Notice("login-text <text to print during the login>");
}
}
#endregion
}