private static void OnServiceTypeAdded (object o, ServiceTypeInfoArgs args) { Console.WriteLine ("Got service type: " + args.ServiceType.ServiceType); ServiceBrowser sb = new ServiceBrowser (client, args.ServiceType.ServiceType, args.ServiceType.Domain); objects.Add (sb); sb.ServiceAdded += OnServiceAdded; }