public object StartProgram(object _) { var systemInitialiser = new SystemInitialiser(); _comportListener = new ComportListener(); _ioListener = new IoListener(); BootManager.BootComplete(); return(null); }
public SystemInitialiser() { this.PrintFunctionName("Initialisation started"); var systemInitialisationActions = new List <Action> { CreateMc4Eisc, Comports, Com3Comports, Relays, Ios, CreateSomfyController }; BootManager.BootFunctions.AddRange(systemInitialisationActions); foreach (var bootFunction in BootManager.BootFunctions) { var index = BootManager.BootFunctions.IndexOf(bootFunction); bootFunction(); BootManager.WriteBootPositionToConsole(index + 1); } }