diff options
author | fcolin | 2007-02-01 09:54:12 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:54:12 +0000 |
commit | ee6877dd0f72dd43d6adaae72d2c90c0f93c234d (patch) | |
tree | a8be4a328e861b4fc11d3f9c2f188d260c09eb2a | |
parent | 95dbb78614cce7910fc8df2c7b7ebaa569180a45 (diff) | |
download | ivy-csharp-ee6877dd0f72dd43d6adaae72d2c90c0f93c234d.zip ivy-csharp-ee6877dd0f72dd43d6adaae72d2c90c0f93c234d.tar.gz ivy-csharp-ee6877dd0f72dd43d6adaae72d2c90c0f93c234d.tar.bz2 ivy-csharp-ee6877dd0f72dd43d6adaae72d2c90c0f93c234d.tar.xz |
Utilisateur : Fcolin Date : 31/10/03 Heure : 15:52 Archivé dans $/EScribe/Ivy Commentaire: (vss 8)
-rw-r--r-- | CSharp/Ivy/IvyPPC/Ivy.cs | 20 |
1 files changed, 19 insertions, 1 deletions
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;
}
+ /// <summary> Send a formated message to someone on the bus
+ /// </summary>
+ /// <remarks>
+ /// 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.
+ /// </remarks>
+ /// <param name='format'>A string message format to build the message
+ /// <param name='args'>args used in message format
+ /// </param>
+ /// <returns>the number of messages actually sent
+ ///
+ /// </returns>
+ public int sendMsg(string format, params object[] args )
+ {
+ return sendMsg( string.Format( format, args ) );
+ }
/// <summary> Subscribes to a regular expression.
/// </summary>
@@ -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);
}
|