/// <summary> /// InitializeSystem - this method gets called after the constructor has finished. /// </summary> public override void InitializeSystem() { CrestronInvoke.BeginInvoke(o => { try { Debug.WriteProgressLine(this, "Initializing Application Logic."); Debug.WriteDebugLine(this, "This message is only written if debugging is enabled."); ConsoleBase.UseProgramSlotAsHeader(); Debug.WriteDebugLine(this, "Now messages have the program slot prepended."); Logger.LogWarning(this, "This message is written to the console if debug warnings are enabled and to the registered LogWriters if Warnings are enabled in the Logger."); Debug.WriteProgressLine(this, "Application Initialized."); Debug.WriteDebugLine(this, "Testing issue-14 Text with {} braces. { \"Value\": true }"); } catch (Exception e) { this.LogException(e, "Exception while initializing application."); } }); }