From ee6877dd0f72dd43d6adaae72d2c90c0f93c234d Mon Sep 17 00:00:00 2001
From: fcolin
Date: Thu, 1 Feb 2007 09:54:12 +0000
Subject: Utilisateur : Fcolin Date : 31/10/03 Heure : 15:52 Archivé
dans $/EScribe/Ivy Commentaire: (vss 8)
---
CSharp/Ivy/IvyPPC/Ivy.cs | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
(limited to 'CSharp/Ivy/IvyPPC/Ivy.cs')
diff --git a/CSharp/Ivy/IvyPPC/Ivy.cs b/CSharp/Ivy/IvyPPC/Ivy.cs
index c97b545..5818949 100644
--- a/CSharp/Ivy/IvyPPC/Ivy.cs
+++ b/CSharp/Ivy/IvyPPC/Ivy.cs
@@ -295,6 +295,24 @@ namespace IvyBus
}
return count;
}
+ /// Send a formated message to someone on the bus
+ ///
+ ///
+ /// Performs a pattern matching according to everyone's regexps, and sends
+ /// the results to the relevant ivy agents.
+ /// There is one thread for each client connected, we could also
+ /// create another thread each time we send a message.
+ ///
+ /// A string message format to build the message
+ /// args used in message format
+ ///
+ /// the number of messages actually sent
+ ///
+ ///
+ public int sendMsg(string format, params object[] args )
+ {
+ return sendMsg( string.Format( format, args ) );
+ }
/// Subscribes to a regular expression.
///
@@ -470,7 +488,7 @@ namespace IvyBus
throw new IvyException("(callCallback) Not regexp matching id " + key);
}
if ( syncControl != null )
- syncControl.Invoke( callback, new object[]{client,tab});
+ syncControl.Invoke( callback, new object[]{client,tab.Clone()});
else callback(client, tab);
}
--
cgit v1.1