public Engine(RuntimeConfiguration configuration) { Trace.Assert(Instance == null, "Cannot have more than one instance of Engine"); Engine.Instance = this; Configuration = configuration; configuration.ParseArgs(); // Do this now before anyone tries to read any configuration value. // Select Diagnose settings based on configuration. Diagnostics.EnableExceptionDump = configuration.EnableExceptionDump; Diagnostics.EnableStackDump = configuration.EnableStackDump; Diagnostics.FailOnException = configuration.FailOnException; Diagnostics.RedirectAllExceptions = configuration.RedirectAllExceptions; }
public virtual void ShutDown() { Debug.WriteLine("Shutting down the engine"); Instance = null; }