C# Class Universe.Simulation.Base.BaseApplication

Starting class for the Universe Server
ファイルを表示 Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Properties

Property Type Description
m_crashDir string
m_saveCrashDumps bool

Public Methods

Method Description
BaseMain ( string args, string defaultIniFile, ISimulationBase simBase ) : void
Configure ( bool requested ) : void
HandleCrashException ( string msg, Exception ex ) : void

Deal with sending the error to the error reporting service and saving the dump to the hard-drive if needed

Startup ( IConfigSource originalConfigSource, IConfigSource configSource, ISimulationBase simBase, string cmdParameters ) : void

Private Methods

Method Description
Configuration ( IConfigSource configSource, string defaultIniFile ) : IConfigSource

Load the configuration for the Application

CurrentDomain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void

Global exception handler -- all unhandled exceptions end up here :)

MakeSureExists ( string file ) : void
ReadLine ( string log, string defaultReturn ) : string
UnhandledException ( bool isTerminating, Exception ex ) : void

Method Details

BaseMain() public static method

public static BaseMain ( string args, string defaultIniFile, ISimulationBase simBase ) : void
args string
defaultIniFile string
simBase ISimulationBase
return void

Configure() public static method

public static Configure ( bool requested ) : void
requested bool
return void

HandleCrashException() public static method

Deal with sending the error to the error reporting service and saving the dump to the hard-drive if needed
public static HandleCrashException ( string msg, Exception ex ) : void
msg string
ex System.Exception
return void

Startup() public static method

public static Startup ( IConfigSource originalConfigSource, IConfigSource configSource, ISimulationBase simBase, string cmdParameters ) : void
originalConfigSource IConfigSource
configSource IConfigSource
simBase ISimulationBase
cmdParameters string
return void

Property Details

m_crashDir public_oe static_oe property

Directory to save crash reports to. Relative to Data/Crashes/
public static string m_crashDir
return string

m_saveCrashDumps public_oe static_oe property

Save Crashes in the bin/crashes folder. Configurable with m_crashDir
public static bool m_saveCrashDumps
return bool