diff options
author | fcolin | 2007-02-01 10:06:35 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:06:35 +0000 |
commit | a440fb87a74d715c8b4eba999e2c1d74ee09d149 (patch) | |
tree | 88f069c540df8ffadd225bfcb1759e32d7b9d1bb /CSharp/Ivy/IvyProbe | |
parent | 7be51feca34173d28c1ea6d96eccf9d2393d310d (diff) | |
download | ivy-csharp-a440fb87a74d715c8b4eba999e2c1d74ee09d149.zip ivy-csharp-a440fb87a74d715c8b4eba999e2c1d74ee09d149.tar.gz ivy-csharp-a440fb87a74d715c8b4eba999e2c1d74ee09d149.tar.bz2 ivy-csharp-a440fb87a74d715c8b4eba999e2c1d74ee09d149.tar.xz |
Utilisateur : Fcolin Date : 23/06/06 Heure : 11:12 Archivé dans $/CSharp/Ivy/IvyProbe Commentaire: (vss 22)
Diffstat (limited to 'CSharp/Ivy/IvyProbe')
-rw-r--r-- | CSharp/Ivy/IvyProbe/IvyProbe.cs | 22 |
1 files changed, 18 insertions, 4 deletions
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 |