public static void Main(string[] args) { using (var manager = new RtcManager(args)) { var comp = new ConsoleIn(); manager.RegisterComponent(comp); manager.Run(); } }
public static void Main(string[] args) { using (var manager = new RtcManager(args)) { var comp = new SimpleComponent("HelloWorld") { OnExecute = _ => { Console.WriteLine("Hello Wolrd!"); return ReturnCode_t.RTC_OK; } }; manager.RegisterComponent(comp); manager.Run(); } }