woensdag 17 februari 2010

Most simple console application

using System;
using System.Linq;
using APILib;

namespace ServiceTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var api = new RemoteAPI();

            api.Open("http://localhost:6351/");
            api.Create();
            api.Cache.AddWebCache("http://grantgalitz.com/Beacon/gwc.php");
            api.Core.Connect();

            while(true)
            {

                var res = api.Net.GetNodes(); 
                Console.WriteLine(“Nodes connected / connecting” + res.Count());
                Console.ReadLine();
            }
        }
    }
}

Geen opmerkingen:

Een reactie posten