summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPerf/IvyPerf.cs
diff options
context:
space:
mode:
Diffstat (limited to 'CSharp/Ivy/IvyPerf/IvyPerf.cs')
-rw-r--r--CSharp/Ivy/IvyPerf/IvyPerf.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/CSharp/Ivy/IvyPerf/IvyPerf.cs b/CSharp/Ivy/IvyPerf/IvyPerf.cs
index b82f449..1351318 100644
--- a/CSharp/Ivy/IvyPerf/IvyPerf.cs
+++ b/CSharp/Ivy/IvyPerf/IvyPerf.cs
@@ -2,6 +2,7 @@ using System;
using IvyBus;
using System.Threading;
using System.Globalization;
+using System.Collections.Specialized;
namespace IvyPerf
{
@@ -40,8 +41,12 @@ namespace IvyPerf
[STAThread]
static void Main(string[] args)
{
-
+ StringCollection my_messsages = new StringCollection();
+ my_messsages.Add("ping");
+ my_messsages.Add("pong");
bus = new Ivy("IvyPerf", "IvyPref ready");
+ bus.BindingFilter += new Ivy.ClientRemoveBindingHandler(bus_BindingFilter);
+ bus.SentMessageClasses = my_messsages;
bus.AutoBinding(typeof(IvyPerf));
bus.start(null);
while( true )
@@ -51,5 +56,10 @@ namespace IvyPerf
if ( count == 0 ) Console.Write( "." );
}
}
+
+ static void bus_BindingFilter(IvyClient app, string arg)
+ {
+ Console.WriteLine( "The app {0} regexp {1} was Filtred.", app.ApplicationName,arg);
+ }
}
}