diff options
Diffstat (limited to 'CSharp')
-rw-r--r-- | CSharp/Ivy/Ivy/Ivy.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/CSharp/Ivy/Ivy/Ivy.cs b/CSharp/Ivy/Ivy/Ivy.cs index 3a7a20d..2255cbc 100644 --- a/CSharp/Ivy/Ivy/Ivy.cs +++ b/CSharp/Ivy/Ivy/Ivy.cs @@ -351,7 +351,7 @@ namespace IvyBus /// <example> This sample shows how to start working with Ivy.
/// <code>
/// Ivy bus = new Ivy("Dummy agent","ready");
- /// bus.bindMsg("(.*)",new Ivy.MessageHandler(myMessageListener));
+ /// bus.bindMsg("(.*)",myMessageListener);
/// bus.start(null);
/// </code>
/// How to send & receive:
@@ -384,7 +384,14 @@ namespace IvyBus {
syncControl = sync;
}
-
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ stop();
+ }
+ base.Dispose(disposing);
+ }
// Autobinding on static method
public void AutoBinding(Type type)
{
|