summaryrefslogtreecommitdiffstats
path: root/avahi-sharp/AvahiTest.cs
diff options
context:
space:
mode:
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);