C# Класс Universe.Simulation.Base.BaseApplication

Starting class for the Universe Server
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
m_crashDir string
m_saveCrashDumps bool

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

BaseMain() публичный статический Метод

public static BaseMain ( string args, string defaultIniFile, ISimulationBase simBase ) : void
args string
defaultIniFile string
simBase ISimulationBase
Результат void

Configure() публичный статический Метод

public static Configure ( bool requested ) : void
requested bool
Результат void

HandleCrashException() публичный статический Метод

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
Результат void

Startup() публичный статический Метод

public static Startup ( IConfigSource originalConfigSource, IConfigSource configSource, ISimulationBase simBase, string cmdParameters ) : void
originalConfigSource IConfigSource
configSource IConfigSource
simBase ISimulationBase
cmdParameters string
Результат void

Описание свойств

m_crashDir публичное статическое свойство

Directory to save crash reports to. Relative to Data/Crashes/
public static string m_crashDir
Результат string

m_saveCrashDumps публичное статическое свойство

Save Crashes in the bin/crashes folder. Configurable with m_crashDir
public static bool m_saveCrashDumps
Результат bool