From a440fb87a74d715c8b4eba999e2c1d74ee09d149 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:06:35 +0000 Subject: Utilisateur : Fcolin Date : 23/06/06 Heure : 11:12 Archivé dans $/CSharp/Ivy/IvyProbe Commentaire: (vss 22) --- CSharp/Ivy/IvyProbe/IvyProbe.cs | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'CSharp') diff --git a/CSharp/Ivy/IvyProbe/IvyProbe.cs b/CSharp/Ivy/IvyProbe/IvyProbe.cs index 1a9a37c..095c31e 100644 --- a/CSharp/Ivy/IvyProbe/IvyProbe.cs +++ b/CSharp/Ivy/IvyProbe/IvyProbe.cs @@ -20,7 +20,7 @@ namespace IvyProbe InitializeComponent(); } - private void append(System.String s) + private void append(string s) { // je mettrais bien la date, aussi. ta.AppendText(s + "\r\n"); @@ -79,8 +79,10 @@ namespace IvyProbe int count; System.String tosend = tbMsg.Text; tbMsg.Text = ""; + DateTime debut = DateTime.Now; count = bus.SendMsg(tosend); - append("Sending '" + tosend + "' count " + count); + TimeSpan duree = DateTime.Now - debut; + append("Sending '" + tosend + "' count " + count + " in " + duree); } [STAThread] @@ -131,6 +133,16 @@ namespace IvyProbe append(e.Client.ApplicationName + " remove binding '" + e.Argument + "'"); } + private void bus_BindingFilter(object sender, IvyEventArgs e) + { + // should not appen in this application because no messages classes declared + append(e.Client.ApplicationName + " filter binding '" + e.Argument + "'"); + } + private void bus_ErrorMessage(object sender, IvyEventArgs e) + { + append(e.Client.ApplicationName + " error message " + e.Id + " '" + e.Argument + "'"); + } + private void busDomain_DomainChanged(object sender, EventArgs e) { bus.Stop(); @@ -147,9 +159,11 @@ namespace IvyProbe bus.Start(busDomain.Domain); } - private void bus_ErrorMessage(object sender, IvyEventArgs e) + private void ivyprobe(object sender, IvyMessageEventArgs e) { - append(e.Client.ApplicationName + " error message "+ e.Id + " '" + e.Argument + "'"); + } + + } } \ No newline at end of file -- cgit v1.1