summaryrefslogtreecommitdiffstats
path: root/avahi-sharp/AvahiTest.cs
diff options
context:
space:
mode:
authorJames Willcox <snopr@snorp.net>2005-09-26 03:57:30 +0000
committerJames Willcox <snopr@snorp.net>2005-09-26 03:57:30 +0000
commita4c2edcece605452c4d72da36b8c39da5e514314 (patch)
tree29737fdadb25ce064719db9e7bd85adf96e78ed8 /avahi-sharp/AvahiTest.cs
parent2920c718017cf93a15f1e3a9c20b3cbb3e2f1f9a (diff)
add some missing events to the resolver classes, and make them
inherit from a base class which contains these events git-svn-id: file:///home/lennart/svn/public/avahi/trunk@635 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-sharp/AvahiTest.cs')
-rw-r--r--avahi-sharp/AvahiTest.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/avahi-sharp/AvahiTest.cs b/avahi-sharp/AvahiTest.cs
index 0f8e1c0..395d5cb 100644
--- a/avahi-sharp/AvahiTest.cs
+++ b/avahi-sharp/AvahiTest.cs
@@ -62,9 +62,15 @@ public class AvahiTest {
private static void BrowseServiceTypes (string domain)
{
ServiceTypeBrowser stb = new ServiceTypeBrowser (client, domain);
+ stb.CacheExhausted += OnCacheExhausted;
stb.ServiceTypeAdded += OnServiceTypeAdded;
}
+ private static void OnCacheExhausted (object o, EventArgs args)
+ {
+ Console.WriteLine ("Cache is exhausted");
+ }
+
private static void OnServiceTypeAdded (object o, ServiceTypeInfo info)
{
Console.WriteLine ("Got service type: " + info.ServiceType);