public static void Main()
{
client = new Client ();
Console.WriteLine ("joined service name: " + Client.JoinServiceName ("FooBar", "_foo", "local"));
EntryGroup eg = new EntryGroup (client);
eg.StateChanged += OnEntryGroupChanged;
eg.AddService ("foobar2", "_dingdong._tcp", client.DomainName,
444, new string[] { "foo=stuff", "bar=stuff2", "baz=stuff3" });
eg.Commit ();
BrowseServiceTypes ("local");
Console.WriteLine ("Press enter to quit");
Console.ReadLine ();
}