Beispiel #1
0
 static void Main(string[] args)
 {
     using (var manager = new RtcManager(args))
     {
         manager.Run();
     }
 }
Beispiel #2
0
    public static void Main(string[] args)
    {
        using (var manager = new RtcManager(args))
        {
            var comp = new ConsoleIn();

            manager.RegisterComponent(comp);

            manager.Run();
        }
    }
Beispiel #3
0
    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();
        }
    }