From db7f7b2859e316ec1418510ddcd0dd68650fb889 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:04:51 +0000 Subject: Utilisateur : Fcolin Date : 23/06/06 Heure : 11:12 Archivé dans $/CSharp/Ivy/IvyPerf Commentaire: (vss 11) --- CSharp/Ivy/IvyPerf/IvyPerf.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'CSharp/Ivy/IvyPerf/IvyPerf.cs') diff --git a/CSharp/Ivy/IvyPerf/IvyPerf.cs b/CSharp/Ivy/IvyPerf/IvyPerf.cs index 1df4224..fc40fdf 100644 --- a/CSharp/Ivy/IvyPerf/IvyPerf.cs +++ b/CSharp/Ivy/IvyPerf/IvyPerf.cs @@ -47,13 +47,11 @@ namespace IvyPerf int timeout = 1000; if (args.Length > 0) timeout = int.Parse(args[0]); - StringCollection my_messsages = new StringCollection(); - my_messsages.Add("ping"); - my_messsages.Add("pong"); - my_messsages.Add("IvyPref"); + bus.SentMessageFilter.Add("ping"); + bus.SentMessageFilter.Add("pong"); + bus.SentMessageFilter.Add("IvyPref"); bus = new Ivy("IvyPerf", "IvyPref ready"); bus.BindingFilter += new EventHandler(bus_BindingFilter); - bus.SentMessageClasses = my_messsages; bus.AutoBinding(typeof(IvyPerf)); bus.Start(null); origin = currentTime(); -- cgit v1.1