summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CSharp/Ivy/IvyProbe/IvyProbe.cs22
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