9.3.5. Пример интеграции RobotNET Loopback

sdk\c-sharp\loopback\loopback\Program.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;

using RobotNET.SDK;

namespace RoboLoopback
{
    class Program
    {
        static void Main( string[] args )
        {
            Console.WriteLine( string.Format( "Program started!" ) );

            if( args.Count() > 1 )
            {
                string addr = args[0];
                string pass = args[1];

                try
                {
                    using( Loopback ping = new Loopback( addr, pass, uint.MaxValue ) )
                    {
                        ping.PingIt( 32, 32 );

                        Console.WriteLine( "OK" );
                    }
                }
                catch( Exception e )
                {
                    Console.WriteLine( e.ToString() );
                }
            }

            Console.WriteLine( string.Format( "Program finished!" ) );
        }
    }
}