diff options
author | fcolin | 2007-02-01 10:04:43 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:04:43 +0000 |
commit | bb505ecd2b3485a2548ed678fe09b5d7401e4fcb (patch) | |
tree | 9b6e936365f9f3aff09a4789da08904eaf95fbb7 /CSharp | |
parent | dc2e968315a4b85b5821d97b8725d5b5a48c1045 (diff) | |
download | ivy-csharp-bb505ecd2b3485a2548ed678fe09b5d7401e4fcb.zip ivy-csharp-bb505ecd2b3485a2548ed678fe09b5d7401e4fcb.tar.gz ivy-csharp-bb505ecd2b3485a2548ed678fe09b5d7401e4fcb.tar.bz2 ivy-csharp-bb505ecd2b3485a2548ed678fe09b5d7401e4fcb.tar.xz |
Utilisateur : Fcolin Date : 20/04/06 Heure : 13:15 Archivé dans $/CSharp/Ivy/IvyPerf Commentaire: filtrage classes (vss 7)
Diffstat (limited to 'CSharp')
-rw-r--r-- | CSharp/Ivy/IvyPerf/IvyPerf.cs | 12 |
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);
+ }
}
}
|