本文整理匯總了C#中OpenSim.OpenSimBase.Shutdown方法的典型用法代碼示例。如果您正苦於以下問題:C# OpenSimBase.Shutdown方法的具體用法?C# OpenSimBase.Shutdown怎麽用?C# OpenSimBase.Shutdown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OpenSim.OpenSimBase
的用法示例。
在下文中一共展示了OpenSimBase.Shutdown方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Startup
public static void Startup(ArgvConfigSource configSource)
{
OpenSimBase m_sim = new OpenSimBase(configSource);
try
{
m_sim.Startup();
}
catch (Exception ex)
{
if (ex.Message != "Restart") //Internal needs a restart message
{
string mes = "[AURORA]: Aurora has crashed! Error: " + ex + ", Stack trace: " + ex.StackTrace;
m_log.Error(mes);
handleException(mes, ex);
}
//Just clean it out as good as we can
m_sim.Shutdown(false);
//Then let it restart if it needs
return;
}
Environment.Exit(0);
}