OpenSim.Region.ScriptEngine.Shared.Api.OSSL_Api.osGetGridNick C# (CSharp) Метод

osGetGridNick() публичный Метод

Get the nickname of this grid, as set in the [GridInfo] config section.
Threat level is Moderate because intentional abuse, for instance scripts that are written to be malicious only on one grid, for instance in a HG scenario, are a distinct possibility.
public osGetGridNick ( ) : string
Результат string
        public string osGetGridNick()
        {
            CheckThreatLevel(ThreatLevel.Moderate, "osGetGridNick");
            m_host.AddScriptLPS(1);

            string nick = String.Empty;
            IConfigSource config = m_ScriptEngine.ConfigSource;

            if (config.Configs[GridInfoServiceConfigSectionName] != null)
                nick = config.Configs[GridInfoServiceConfigSectionName].GetString("gridnick", nick);

            if (String.IsNullOrEmpty(nick))
                nick = GridUserInfo(InfoType.Nick);

            return nick;
        }
OSSL_Api