diff options
-rw-r--r-- | CSharp/Ivy/IvyPerf/IvyPerf.cs | 8 |
1 files changed, 3 insertions, 5 deletions
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<IvyEventArgs>(bus_BindingFilter);
- bus.SentMessageClasses = my_messsages;
bus.AutoBinding(typeof(IvyPerf));
bus.Start(null);
origin = currentTime();
|