sdk\c-sharp\check\check\Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using RobotNET.SDK;
namespace RoboCheck
{
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];
string service = args.Count() > 2 ? args[2] : null;
try
{
using( Check check = new Check( addr, pass, uint.MaxValue ) )
{
check.CheckIt( service, uint.MaxValue );
Console.WriteLine( "OK" );
}
}
catch( Exception e )
{
Console.WriteLine( e.ToString() );
}
}
Console.WriteLine( string.Format( "Program finished!" ) );
}
}
}